added status_format option to sampleconfig-dev file
[uzbl-mobile] / examples / configs / sampleconfig-dev
1
2 # example uzbl config. in a real config, we should obey the xdg spec
3
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
7
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
12
13 [behavior]
14 history_handler = ./examples/scripts/history.sh
15 download_handler = ./examples/scripts/download.sh
16 cookie_handler = ./examples/scripts/cookies.sh
17 fifo_dir = /tmp
18 socket_dir = /tmp
19 always_insert_mode = 0
20 modkey = Mod1
21 show_status = 1
22 status_top = 0
23 status_format = <span font_family="monospace"><span background="darkgreen" foreground="khaki">MODE</span> [<span background="red" foreground="white">KEYCMD</span>] LOAD_PROGRESSBAR [<span foreground="darkgreen">URI</span>] [<span background="khaki">NAME</span>]</span>
24
25 [bindings]
26 # scroll down/up/left/right
27 j = scroll_vert 20
28 k = scroll_vert -20
29 h = scroll_horz -20
30 l = scroll_horz 20
31 b = back
32 m = forward
33 s = stop
34 r = reload
35 R = reload_ign_cache
36 + = zoom_in
37 - = zoom_out
38 t = toggle_status
39 #hilight matches
40 /_ = search %s
41 #jump to next
42 ; = search
43 gh      = uri http://www.uzbl.org
44 o _     = uri %s
45 :wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
46 gg _    = uri http://www.google.com/search?q=%s
47 i = insert_mode
48 B = spawn ./examples/scripts/insert_bookmark.sh
49 u = spawn ./examples/scripts/load_url_from_history.sh
50 U = spawn ./examples/scripts/load_url_from_bookmarks.sh
51 ZZ = exit
52 S = script alert("hi");
53
54 # 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...
55 #hit F to toggle the Hints (now in form of link numbering)
56 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);}}
57 #hit f followed by linknumber and ENTER to follow that link
58 f_ = script window.location = document.links[%s].href;
59
60 [network]
61 # to start a local socks server, do : ssh -fND localhost:8118 localhost
62 #proxy_server = http://127.0.0.1:8118
63 #values 0-3
64 http_debug = 0
65 user-agent = uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%)
66 # Example user agent containing everything:
67 #user-agent = Uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%) (%sysname% %nodename% %kernrel% %kernver% %arch-system% [%arch-uzbl%]) (Commit %commit%)
68 max_conns = 
69 max_conns_per_host = 
70