2 # example uzbl config. in a real config, we should obey the xdg spec
4 # all keys in the behavior group are optional. if not set, the corresponding behavior is disabed.
5 # bindings_internal denote keys to trigger actions internally in uzbl
6 # bindings_external denote keys to trigger scripts outside uzbl
8 # keyboard behavior is vimstyle by default (all actions -> 1 key). set
9 # always_insert_mode to always be in insert mode and disable going out of it.
10 # if you do this, make sure you've set a modkey so you can reach the actions
11 # from insert mode by combining them with the modkey
14 history_handler = ./examples/scripts/history.sh
15 download_handler = ./examples/scripts/download.sh
16 cookie_handler = ./examples/scripts/cookies.sh
19 always_insert_mode = 0
23 status_format = <span font_family="monospace"><span background="khaki" foreground="black">MODE</span> [<span weight="bold" foreground="red">KEYCMD</span>] <span foreground="#606060"> LOAD_PROGRESSBAR </span><span foreground="#99FF66">URI</span> <span foreground="khaki">NAME</span></span>
24 # you can optionally use this setting to override the background color of the statusbar from your GTK theme.
25 status_background = #303030
28 # scroll down/up/left/right
45 gh = uri http://www.uzbl.org
47 :wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
48 gg _ = uri http://www.google.com/search?q=%s
50 B = spawn ./examples/scripts/insert_bookmark.sh
51 u = spawn ./examples/scripts/load_url_from_history.sh
52 U = spawn ./examples/scripts/load_url_from_bookmarks.sh
54 S = script alert("hi");
56 # Keyboard based link following: work in progress! No C DOM bindings yet, no click() event for hyperlinks so no referrer set..Quite basic but does the job for now...
57 #hit F to toggle the Hints (now in form of link numbering)
58 F = script for (var i=0; i < document.links.length; i++) {var uzblid = 'uzbl_link_hint_';var li = document.links[i];var pre = document.getElementById(uzblid+i);if (pre) {li.removeChild(pre);} else {var hint = document.createElement('div');hint.setAttribute('id',uzblid+i);hint.innerHTML = i;hint.style.display='inline';hint.style.lineHeight='90%';hint.style.backgroundColor='red';hint.style.color='white';hint.style.fontSize='small-xx';hint.style.fontWeight='light';hint.style.margin='0px';hint.style.padding='2px';hint.style.position='absolute';hint.style.textDecoration='none';hint.style.left=li.style.left;hint.style.top=li.style.top;li.insertAdjacentElement('afterBegin',hint);}}
59 #hit f followed by linknumber and ENTER to follow that link
60 f_ = script window.location = document.links[%s].href;
63 # to start a local socks server, do : ssh -fND localhost:8118 localhost
64 #proxy_server = http://127.0.0.1:8118
67 user-agent = uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%)
68 # Example user agent containing everything:
69 #user-agent = Uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%) (%sysname% %nodename% %kernrel% %kernver% %arch-system% [%arch-uzbl%]) (Commit %commit%)