From 0e0fba1fcf5372cf67d9dfa5d6817b2e225709d7 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 10 Nov 2009 17:27:41 +0100 Subject: added mouse binding example to config --- examples/config/uzbl/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index 32bb13c..090ebd2 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -108,11 +108,17 @@ set socket_dir = /tmp @modmap space Space -# === Keyboard bindings ====================================================== +# === Keyboard & Mouse bindings ====================================================== # With this command you can enter in any command at runtime when prefixed with # a colon. @bind :_ = chain '%s' + +# Middle click +# if clicked on a link open the link in a new uzbl window +# otherwise open the selection in the current window +@bind = sh 'if [ "\@SELECTED_URI" ]; then uzbl-browser -u \@SELECTED_URI; else echo "uri $(xclip -o)" > $4; fi' + @bind j = scroll vertical 20 @bind = scroll vertical 100% @bind k = scroll vertical -20 -- cgit v1.2.3