69c73624e9780359a2f9c4a6197bc0a90b6e9f47
[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="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
26
27 [bindings]
28 # scroll down/up/left/right
29 j = scroll_vert 20
30 k = scroll_vert -20
31 h = scroll_horz -20
32 l = scroll_horz 20
33 b = back
34 m = forward
35 s = stop
36 r = reload
37 R = reload_ign_cache
38 + = zoom_in
39 - = zoom_out
40 t = toggle_status
41 #hilight matches
42 /_ = search %s
43 #jump to next
44 ; = search
45 gh      = uri http://www.uzbl.org
46 o _     = uri %s
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
49 i = insert_mode
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
53 ZZ = exit
54 S = script alert("hi");
55
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;
61
62 [network]
63 # to start a local socks server, do : ssh -fND localhost:8118 localhost
64 #proxy_server = http://127.0.0.1:8118
65 #values 0-3
66 http_debug = 0
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%)
70 max_conns = 
71 max_conns_per_host = 
72