diff options
Diffstat (limited to 'examples/config/uzbl/config')
-rw-r--r-- | examples/config/uzbl/config | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index 8abe554..29cb365 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -3,7 +3,7 @@ set prefix = /usr/local -# === Shortcuts ============================================================== +# === Shortcuts / Aliases =================================================== # request BIND <keycmd> = <command> set bind = request BIND @@ -19,6 +19,8 @@ set progress = request PROGRESS_CONFIG set modmap = request MODMAP # request IGNORE_KEY <glob> set ignore_key = request IGNORE_KEY +# request MODKEY_ADDITION <key1> <key2> <keyn> <result> +set modkey_addition = request MODKEY_ADDITION set set_mode = set mode = set set_status = set status_message = @@ -108,25 +110,32 @@ set socket_dir = /tmp # === Key modmapping and ignoring ============================================ -#modmap from to +#modmap <From> <To> @modmap <Control> <Ctrl> @modmap <ISO_Left_Tab> <Shift-Tab> @modmap <space> <Space> +#modkey_addition <Key1> <Key2> <Result> +@modkey_addition <Shift> <Ctrl> <Meta> +@modkey_addition <Shift> <Tab> <Shift-Tab> + #ignore_key <glob> @ignore_key <ISO_*> @ignore_key <Shift> + # === Keyboard & Mouse bindings ============================================== # With this command you can enter in any command at runtime when prefixed with # a colon. -@bind :_ = chain '%s' +@bind :_ = %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' +set load_from_xclip = sh 'echo "uri $(xclip -o)" > $4' +set open_new_window = sh 'uzbl-browser -u \@SELECTED_URI' +@bind <Button2> = js if("\@SELECTED_URI") { Uzbl.run("\@open_new_window"); } else { Uzbl.run("\\\@load_from_xclip"); } @bind j = scroll vertical 20 @bind <Page_Down> = scroll vertical 100% @@ -157,7 +166,7 @@ set socket_dir = /tmp @bind gh = uri http://www.uzbl.org # shortcut to set variables @bind s _ = set %s -@bind \wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go +@bind \\wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go @bind gg _ = uri http://www.google.com/search?q=%s # Enclose the executable in quotes if it has spaces. Any additional parameters you use will # appear AFTER the default parameters @@ -285,6 +294,7 @@ set stack = @mode_config stack # Multi-stage-binding mode config. @stack keycmd_events = 1 @stack modcmd_updates = 1 +@stack forward_keys = 0 @stack keycmd_style = foreground="red" @stack prompt_style = foreground="#888" weight="light" @stack status_background = #202020 @@ -300,7 +310,7 @@ set default_mode = command set toggle_cmd_ins = @toggle_modes command insert @bind i = @toggle_cmd_ins -@bind <Ctrl><i> = @toggle_cmd_ins +@bind <Ctrl>i = @toggle_cmd_ins # === Post-load misc commands =============================================== |