basic linkfollowing
[uzbl-mobile] / examples / configs / sampleconfig
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 = /usr/share/uzbl/examples/scripts/history.sh
15 download_handler = /usr/share/uzbl/examples/scripts/download.sh
16 cookie_handler = /usr/share/uzbl/examples/scripts/cookie.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
24 [bindings]
25 # scroll down/up/left/right
26 j = scroll_vert 20
27 k = scroll_vert -20
28 h = scroll_horz -20
29 l = scroll_horz 20
30 b = back
31 m = forward
32 s = stop
33 r = reload
34 R = reload_ign_cache
35 #Link Following preview...
36 #These scripts are going to be outsourced in future.
37 #Hit F to toggle the Hints (now in form of link numbering)
38 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);}}
39 #then type f, followed by the link number and RETURN to follow that link
40 f_ = script window.location = document.links[%s].href
41 + = zoom_in
42 - = zoom_out
43 t = toggle_status
44 #hilight matches
45 /_ = search %s
46 #jump to next
47 ; = search
48 gh      = uri http://www.uzbl.org
49 o _     = uri %s
50 :wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
51 gg _    = uri http://www.google.com/search?q=%s
52 i = insert_mode
53 B = spawn /usr/share/uzbl/examples/scripts/insert_bookmark.sh
54 u = spawn /usr/share/uzbl/examples/scripts/load_url_from_history.sh
55 U = spawn /usr/share/uzbl/examples/scripts/load_url_from_bookmarks.sh
56 ZZ = exit
57 S = script alert("hi");
58
59 [network]
60 proxy_server = 
61 #values 0-3
62 http_debug = 0
63 user-agent = uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%)
64 # Example user agent containing everything:
65 #user-agent = Uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%) (%sysname% %nodename% %kernrel% %kernver% %arch-system% [%arch-uzbl%]) (Commit %commit%)
66 max_conns =
67 max_conns_per_host =