2 # all settings are optional. you can use uzbl without any config at all (but it won't do much)
4 # keyboard behavior in this sample config is sort of vimstyle
7 set download_handler = spawn $XDG_DATA_HOME/uzbl/scripts/download.sh
8 set cookie_handler = spawn $XDG_DATA_HOME/uzbl/scripts/cookies.py
9 #set new_window = sh 'echo uri "$8" > $4' # open in same window
10 set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour
11 set scheme_handler = spawn $XDG_DATA_HOME/uzbl/scripts/scheme.py
12 set load_start_handler = chain 'set keycmd = ' 'set status_message = <span foreground="khaki">wait</span>'
13 set load_commit_handler = set status_message = <span foreground="green">recv</span>
14 set load_finish_handler = chain 'set status_message = <span foreground="gold">done</span>' 'spawn $XDG_DATA_HOME/uzbl/scripts/history.sh'
18 # Behaviour and appearance
20 set status_background = #303030
21 set 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 foreground="orange">\@status_message</span><span foreground="#606060"> \@[\@SELECTED_URI]\@</span></span>
23 set insert_indicator = I
24 set command_indicator = C
25 set useragent = Uzbl (Webkit @WEBKIT_MAJOR.@WEBKIT_MINOR.@WEBKIT_MICRO) (@(uname -s)@ @(uname -n)@ @(uname -r)@ @(uname -v)@ @(uname -m)@ [@ARCH_UZBL]) (Commit @COMMIT)
33 # like this you can enter any command at runtime, interactively. prefixed by ':'
36 bind j = scroll_vert 20
37 bind k = scroll_vert -20
38 bind h = scroll_horz -20
39 bind l = scroll_horz 20
40 bind << = scroll_begin
46 bind R = reload_ign_cache
49 bind T = toggle_zoom_type
50 bind 1 = sh "echo set zoom_level = 1.0 > $4"
51 bind 2 = sh "echo set zoom_level = 2.0 > $4"
52 bind t = toggle_status
54 bind ?* = search_reverse %s
57 bind N = search_reverse
58 bind gh = uri http://www.uzbl.org
59 # shortcut to set the uri. TODO: i think we can abandon the uri command in favor of 'set uri = ..'
61 # shortcut to set variables
63 bind \wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
64 bind gg _ = uri http://www.google.com/search?q=%s
65 bind i = toggle_insert_mode
66 # disable insert mode (1 to enable). note that Esc works to disable, regardless of this setting
67 bind I = toggle_insert_mode 0
68 # Enclose the executable in quotes if it has spaces. Any additional parameters you use will
69 # appear AFTER the default parameters
70 bind B = spawn $XDG_DATA_HOME/uzbl/scripts/insert_bookmark.sh
71 bind U = spawn $XDG_DATA_HOME/uzbl/scripts/load_url_from_history.sh
72 bind u = spawn $XDG_DATA_HOME/uzbl/scripts/load_url_from_bookmarks.sh
73 # with the sample yank script, you can yank one of the arguments into clipboard/selection
74 bind yurl = spawn $XDG_DATA_HOME/uzbl/scripts/yank.sh 6 primary
75 bind ytitle = spawn $XDG_DATA_HOME/uzbl/scripts/yank.sh 7 clipboard
76 # does the same as yurl but without needing a script
77 bind y2url = sh 'echo -n $6 | xclip'
78 # go the page from primary selection
79 bind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
80 # go to the page in clipboard
81 bind P = sh 'echo "uri `xclip -selection clipboard -o`" > $4'
82 # start a new uzbl instance from the page in primary selection
83 bind 'p = sh 'exec uzbl --uri $(xclip -o)'
85 bind Xs = js alert("hi");
86 # example showing how to use sh
87 # it sends a command to the fifo, whose path is told via a positional param
88 # if fifo_dir is not set, it'll echo to a file named (null) somewhere >:) remember to delete it
89 # The body of the shell command should be one parameter, so if it has spaces like here,
90 # you must enclose it in quotes. Remember to escape (and double-escape) quotes and backslashes
91 # in the body. Any additional parameters you use will appear AFTER the default parameters (cfg file
92 # path, fifo & socket dirs, etc.)
93 bind XS = sh 'echo "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
95 bind !dump = sh "echo dump_config > $4"
96 bind !reload = sh 'cat $1 > $4'
98 # this script allows you to configure (per domain) values to fill in form fields (eg login information) and to fill in these values automatically
99 bind za = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh
100 bind ze = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh edit
101 bind zn = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh new
102 bind zl = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh load
104 # other - more advanced - implementation using perl: (could not get this to run - Dieter )
105 bind LL = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl load
106 bind LN = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl new
107 bind LE = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl edit
109 # we ship some javascripts to do keyboard based link hinting/following. (webkit does not have C DOM bindings yet)
110 # this is similar to how it works in vimperator (and konqueror)
111 # TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ?
112 #hit F to toggle the Hints (now in form of link numbering)
113 bind F = script $XDG_DATA_HOME/uzbl/scripts/hint.js
114 # the most stable version:
115 bind fl* = script $XDG_DATA_HOME/uzbl/scripts/follow_Numbers.js %s
116 # using strings, not polished yet:
117 bind fL* = script $XDG_DATA_HOME/uzbl/scripts/follow_Numbers_Strings.js %s
120 # "home" page if you will