aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/config/uzbl/config8
1 files changed, 7 insertions, 1 deletions
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 <Button2> = sh 'if [ "\@SELECTED_URI" ]; then uzbl-browser -u \@SELECTED_URI; else echo "uri $(xclip -o)" > $4; fi'
+
@bind j = scroll vertical 20
@bind <Page_Down> = scroll vertical 100%
@bind k = scroll vertical -20