diff options
author | Rob <rob.manea@gmail.com> | 2009-11-10 17:27:41 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-11-10 17:27:41 +0100 |
commit | 0e0fba1fcf5372cf67d9dfa5d6817b2e225709d7 (patch) | |
tree | d65bc9d5eaaa1b8e96d0c0e984b47a672360abe7 /examples/config/uzbl | |
parent | 0cd073c7ad0c00e7e09ecd72ed1224711d16f6de (diff) |
added mouse binding example to config
Diffstat (limited to 'examples/config/uzbl')
-rw-r--r-- | examples/config/uzbl/config | 8 |
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 |