diff options
Diffstat (limited to 'examples/config')
-rw-r--r-- | examples/config/config | 36 | ||||
-rw-r--r-- | examples/config/style.css | 28 |
2 files changed, 57 insertions, 7 deletions
diff --git a/examples/config/config b/examples/config/config index a1a3494..ab789f9 100644 --- a/examples/config/config +++ b/examples/config/config @@ -4,9 +4,10 @@ # === Core settings ========================================================== # common directory locations -set prefix = @(echo $PREFIX)@ -set data_home = @(echo $XDG_DATA_HOME)@ -set cache_home = @(echo $XDG_CACHE_HOME)@ +set prefix = @(echo $PREFIX)@ +set data_home = @(echo $XDG_DATA_HOME)@ +set cache_home = @(echo $XDG_CACHE_HOME)@ +set config_home = @(echo $XDG_CONFIG_HOME)@ # Interface paths. set fifo_dir = /tmp @@ -72,6 +73,7 @@ set download_handler = sync_spawn @scripts_dir/download.sh # add some javascript to the page for other 'js' and 'script' commands to access later. @on_event LOAD_COMMIT js uzbl = {}; @on_event LOAD_COMMIT script @scripts_dir/formfiller.js +@on_event LOAD_COMMIT script @scripts_dir/follow.js # Userscripts/per-site-settings. See the script and the example configuration for details #@on_event LOAD_COMMIT spawn @scripts_dir/per-site-settings.py @data_home/uzbl/per-site-settings @@ -93,6 +95,9 @@ set download_handler = sync_spawn @scripts_dir/download.sh # === Behaviour and appearance =============================================== +# Custom CSS can be defined here, including link follower hint styles +set stylesheet_uri = file://@config_home/uzbl/style.css + set show_status = 1 set status_top = 0 set status_background = #303030 @@ -181,6 +186,7 @@ set ebind = @mode_bind global,-insert # Resets keycmd and returns to default mode. @on_event ESCAPE @set_mode @on_event ESCAPE event KEYCMD_CLEAR +@on_event ESCAPE js uzbl.follow.clearHints() @bind <Escape> = event ESCAPE @bind <Ctrl>[ = event ESCAPE @@ -263,6 +269,9 @@ set ebind = @mode_bind global,-insert @cbind n = search @cbind N = search_reverse +# Print pages to a printer +@cbind <Ctrl>p = hardcopy + # Web searching binds @cbind gg<Google:>_ = uri http://www.google.com/search?q=\@<encodeURIComponent(%r)>\@ @cbind ddg<DuckDuckGo:>_ = uri http://duckduckgo.com/?q=%s @@ -296,6 +305,13 @@ set ebind = @mode_bind global,-insert # Hard-bound bookmarks @cbind gh = uri http://www.uzbl.org +# New window binds +@cbind gw = event REQ_NEW_WINDOW + +# SSL-ify bindings +@cbind zs = uri \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ +@cbind zS = event REQ_NEW_WINDOW \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ + # Yanking & pasting binds @cbind yu = sh 'echo -n "$UZBL_URI" | xclip' @cbind yU = sh 'echo -n "$1" | xclip' \@SELECTED_URI @@ -321,14 +337,19 @@ set ebind = @mode_bind global,-insert @cbind U = spawn @scripts_dir/load_url_from_history.sh @cbind u = spawn @scripts_dir/load_url_from_bookmarks.sh +# Temporary bookmarks +@cbind <Ctrl>d = spawn @scripts_dir/insert_temp.sh +@cbind D = spawn @scripts_dir/load_url_from_temps.sh + # Link following (similar to vimperator and konqueror) # Set custom keys you wish to use for navigation. Some common examples: set follow_hint_keys = 0123456789 #set follow_hint_keys = qwerty #set follow_hint_keys = asdfghjkl; #set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234 -@cbind fl* = spawn @scripts_dir/follow.sh "%s" -@cbind gi = spawn @scripts_dir/go_input.sh +@cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 0) >\@ +@cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 1) >\@ +@cbind fi = spawn @scripts_dir/go_input.sh # Form filler binds # This script allows you to configure (per domain) values to fill in form @@ -336,10 +357,10 @@ set follow_hint_keys = 0123456789 # This implementation allows you to save multiple profiles for each form # (think about multiple accounts on some website). set formfiller = spawn @scripts_dir/formfiller.sh -@cbind za = @formfiller add @cbind ze = @formfiller edit @cbind zn = @formfiller new @cbind zl = @formfiller load +@cbind zo = @formfiller once # --- Uzbl tabbed binds ------------------------------------------------------ @@ -365,7 +386,8 @@ set preset = event PRESET_TABS @cbind gs<preset save:>_ = @preset save %s @cbind glo<preset load:>_ = @preset load %s @cbind gd<preset del:>_ = @preset del %s -@cbind gli = @preset list +# This doesn't work right now. +#@cbind gli = @preset list # === Context menu items ===================================================== diff --git a/examples/config/style.css b/examples/config/style.css new file mode 100644 index 0000000..a368aa0 --- /dev/null +++ b/examples/config/style.css @@ -0,0 +1,28 @@ +#uzbl_link_hints > span { + z-index: 1000 !important; + + background-color: #333 !important; + margin: 0 !important; + padding: 3px !important; + + color: #ccc !important; + font-size: 9px !important; + line-height: 9px !important; + font-weight: bold !important; + font-variant: normal !important; + text-decoration: none !important; + + -webkit-transform: translate(-5px,-5px); + opacity: 0.8; + -webkit-border-radius: 6px !important; + /* Play around with this, pretty fun things to do :) */ + /* -webkit-transform: scale(1) rotate(0deg) translate(-6px,-5px) !important; */ +} + +/* we can have different colours for different types of hints! */ +#uzbl_link_hints.new-window > span { + background-color: #ffff00 !important; + color: black !important; +} + +/* vim:set et ts=4: */ |