-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
535 lines (433 loc) · 21.5 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# example uzbl config.
# all settings are optional. you can use uzbl without any config at all (but it won't do much)
set prefix = /usr/local
# === Shortcuts / Aliases =================================================== #{{{
# Config related events (use the request function):
# request BIND <bind cmd> = <command>
set bind = request BIND
# request MODE_BIND <mode> <bind cmd> = <command>
set mode_bind = request MODE_BIND
# request MODE_CONFIG <mode> <key> = <value>
set mode_config = request MODE_CONFIG
# request ON_EVENT <EVENT_NAME> <command>
set on_event = request ON_EVENT
# request PROGRESS_CONFIG <key> = <value>
set progress = request PROGRESS_CONFIG
# request MODMAP <From> <To>
set modmap = request MODMAP
# request IGNORE_KEY <glob>
set ignore_key = request IGNORE_KEY
# request MODKEY_ADDITION <key1> <key2> <keyn> <result>
set modkey_addition = request MODKEY_ADDITION
# Action related events (use the event function):
# event TOGGLE_MODES <mode1> <mode2> ... <moden>
set toggle_modes = event TOGGLE_MODES
set set_mode = set mode =
set set_status = set status_message =
set shell_cmd = sh -c
# Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable"
set scripts_dir = $XDG_CONFIG_HOME/uzbl:@prefix/share/uzbl/examples/data:scripts
# }}}
# === Handlers ===============================================================# {{{
# --- Hardcoded event handlers -----------------------------------------------
# These handlers can't be moved to the new event system yet as we don't
# support events that can wait for a response from a script.
set cookie_handler = talk_to_socket $XDG_CACHE_HOME/uzbl/cookie_daemon_socket
set scheme_handler = sync_spawn @scripts_dir/scheme.py
set authentication_handler = sync_spawn @scripts_dir/auth.py
# --- Optional dynamic event handlers ----------------------------------------
# Open link in new window
#@on_event NEW_WINDOW sh 'uzbl-browser -u "$8"' %r
# Open in current window
#@on_event NEW_WINDOW uri %s
# Open in new tab
@on_event NEW_WINDOW event NEW_TAB_NEXT %s
# Download handler
@on_event DOWNLOAD_REQUEST spawn @scripts_dir/download.pl %s
# Load start handler
@on_event LOAD_START @set_status <span foreground="khaki">wait</span>
# Reset the keycmd on navigation
@on_event LOAD_START @set_mode
# Load commit handlers
@on_event LOAD_COMMIT @set_status <span foreground="green">recv</span>
@on_event LOAD_COMMIT spawn @scripts_dir/cookies.pl
@on_event LOAD_COMMIT spawn @scripts_dir/scriptblock.pl
@on_event LOAD_COMMIT spawn @scripts_dir/adblock.py
@on_event LOAD_COMMIT spawn @scripts_dir/history.pl
#@on_event LOAD_COMMIT script @scripts_dir/scroll_msg.js
# Load progress handlers
@on_event LOAD_PROGRESS js uzblAdBlock();
# Load finish handlers
@on_event LOAD_FINISH @set_status <span foreground="gold">done</span>
@on_event LOAD_FINISH spawn @scripts_dir/ytvp.sh $4 $6
#@on_event LOAD_FINISH spawn @scripts_dir/favicon.py
# Switch to insert mode if a (editable) html form is clicked
@on_event FORM_ACTIVE @set_mode insert
# Switch to command mode if anything else is clicked
@on_event ROOT_ACTIVE @set_mode command
# Example CONFIG_CHANGED event handler
#@on_event CONFIG_CHANGED print Config changed: %1 = %2
# }}}
# === Behaviour and appearance ===============================================# {{{
# scripts and plugins
set disable_plugins = 1
set disable_scripts = 1
set autoshrink_images = 1
set show_status = 1
set status_top = 0
set status_background = #303030
set modcmd_style = weight="bold" foreground="red"
set keycmd_style = weight="light" foreground="red"
set prompt_style = foreground="grey"
set cursor_style = underline="single"
set completion_style = foreground="green"
set hint_style = weight="bold"
set mode_section = <span background="khaki" foreground="black">[\@[\@mode_indicator]\@]</span>
set keycmd_section = [<span \@prompt_style>\@[\@keycmd_prompt]\@</span><span \@modcmd_style>\@modcmd</span><span \@keycmd_style>\@keycmd</span><span \@completion_style>\@completion_list</span>]
set progress_section = <span foreground="#606060">\@[\@progress_format]\@</span>
set scroll_section = <span foreground="#606060">\@[\@scroll_message]\@</span>
set uri_section = <span foreground="#99FF66">\@[\@uri]\@</span>
#set name_section = <span foreground="khaki">\@[\@NAME]\@</span>
set status_section = <span foreground="orange">\@status_message</span>
set selected_section = <span foreground="#606060">\@[\@SELECTED_URI]\@</span>
set status_format = <span font_family="monospace">@mode_section @keycmd_section @progress_section @uri_section @status_section @scroll_section @selected_section \@cookie_status \@scripts_status \@plugins_status \@hist_status</span>
#set status_format = <span font_family="monospace">@mode_section @keycmd_section @progress_section @uri_section @name_section @status_section @scroll_section @selected_section @cookie_status \@scripts_status \@plugins_status</span>
set title_format_long = \@keycmd_prompt \@raw_modcmd \@raw_keycmd \@TITLE - Uzbl browser <\@NAME> \@SELECTED_URI
# Progress bar config
@progress width = 10
# %d = done, %p = pending %c = percent done, %i = int done, %s = spinner,
# %t = percent pending, %o = int pending, %r = sprite scroll
#@progress format = [%d%p]%c
#@progress done = \#
#@progress pending =
# Or ride those spinnas'
@progress format = [%d%s%p]%c
@progress spinner = -\\|/
@progress done = -
@progress pending =
# }}}
# === Core settings ==========================================================# {{{
#set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}.@{WEBKIT_MICRO}) (@(+uname -sm)@ [@ARCH_UZBL]) (Commit @COMMIT)
set useragent = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11
set fifo_dir = /tmp
set socket_dir = /tmp
set icon = $XDG_CACHE_HOME/uzbl/favicon/default.ico
# }}}
# === Key modmapping and ignoring ============================================# {{{
#modmap <From> <To>
@modmap <Control> <Ctrl>
@modmap <ISO_Left_Tab> <Shift-Tab>
@modmap <space> <Space>
#modkey_addition <Key1> <Key2> <Result>
@modkey_addition <Shift> <Ctrl> <Meta>
@modkey_addition <Shift> <Tab> <Shift-Tab>
@modkey_addition <Shift> <Insert> <Shift-Insert>
#ignore_key <glob>
@ignore_key <ISO_*>
@ignore_key <Shift>
# }}}
# === Mode bind aliases ======================================================# {{{
# Global binding alias (this is done automatically inside the bind plugin).
#set bind = @mode_bind global
# Insert mode binding alias
set ibind = @mode_bind insert
# Command mode binding alias
set cbind = @mode_bind command
# Non-insert mode bindings alias (ebind for edit-bind).
set ebind = @mode_bind global,-insert
# }}}
# === Global & keycmd editing binds ==========================================# {{{
# Resets keycmd and returns to default mode.
@on_event ESCAPE @set_mode
@bind <Escape> = event ESCAPE
@bind <Ctrl>[ = event ESCAPE
# Commands for editing and traversing the keycmd.
@ebind <Return> = event KEYCMD_EXEC_CURRENT
@ebind <Home> = event SET_CURSOR_POS 0
@ebind <End> = event SET_CURSOR_POS -1
@ebind <Left> = event SET_CURSOR_POS -
@ebind <Right> = event SET_CURSOR_POS +
@ebind <BackSpace> = event KEYCMD_BACKSPACE
@ebind <Delete> = event KEYCMD_DELETE
@ebind <Tab> = event START_COMPLETION
# Readline-ish bindings.
@ebind <Ctrl>w = event KEYCMD_STRIP_WORD
@ebind <Ctrl>u = event SET_KEYCMD
@ebind <Ctrl>a = event SET_CURSOR_POS 0
@ebind <Ctrl>e = event SET_CURSOR_POS -1
# Keycmd injection/append examples.
#@ebind <Ctrl>su = event INJECT_KEYCMD \@uri
#@ebind <Ctrl>st = event INJECT_KEYCMD \@title
#@ebind <Ctrl>du = event APPEND_KEYCMD \@uri
#@ebind <Ctrl>dt = event APPEND_KEYCMD \@title
# }}}
# === Mouse bindings =========================================================# {{{
# Middle click open in new window
#@bind <Button2> = sh 'if [ "\@SELECTED_URI" ]; then uzbl-browser -u "\@SELECTED_URI"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > $4; fi'
# Middle click open in new tab
@bind <Button2> = sh 'if [ "\@SELECTED_URI" ]; then echo "event NEW_TAB_NEXT \@SELECTED_URI" > $4; else echo "event NEW_TAB_NEXT $(parcellite -p | sed s/\\\@/%40/g)" > $4; fi'
@bind <Ctrl><Button2> = sh 'if [ "\@SELECTED_URI" ]; then echo "event NEW_TAB_NEXT \@SELECTED_URI" > $4; echo "event NEXT_TAB" > $4; else echo "event NEW_TAB_NEXT $(parcellite -p | sed s/\\\@/%40/g)" > $4; echo "event NEXT_TAB" > $4; fi'
# }}}
# === Keyboard bindings ======================================================# {{{
# With this command you can enter in any command at runtime when prefixed with
# a colon.
@cbind :_ = %s
# Pagemovements, navigation, searching and zooming#{{{
# --- Page movement binds ---#{{{
@cbind j = scroll vertical 20
@cbind k = scroll vertical -20
@cbind h = scroll horizontal -20
@cbind l = scroll horizontal 20
@cbind <Page_Up> = scroll vertical -100%
@cbind <Ctrl>u = scroll vertical -100%
@cbind <Page_Down> = scroll vertical 100%
@cbind <Ctrl>d = scroll vertical 100%
@cbind gg = scroll vertical begin
@cbind G = scroll vertical end
@cbind ^ = scroll horizontal begin
@cbind $ = scroll horizontal end
@cbind <Space> = scroll vertical 100%
#}}}
# --- Navigation binds ---#{{{
# Uri opening prompts
@cbind o<uri:>_ = uri %s
# Or have it load the current uri into the keycmd for editing
@cbind O<uri:\@uri>_ = uri %s
@cbind b = back
@cbind <Ctrl>m = forward
@cbind S = stop
@cbind r = reload
@cbind R = reload_ign_cache
@cbind >> = script @scripts_dir/go_next_page.js
@cbind << = script @scripts_dir/go_prev_page.js
# Exit binding with undo option
@cbind d = spawn \@scripts_dir/exit.sh
@cbind D = spawn \@scripts_dir/exit.sh prev
@cbind ut = chain "spawn \@scripts_dir/undo.sh" "event NEXT_TAB"
# Go up one level
@bind gu = script @scripts_dir/go_up.js
# Go to the top/root level
@bind gU = js (function() { location = location.protocol + "//" + document.domain; })()
#}}}
# --- Zoom binds ---#{{{
@cbind + = zoom_in
@cbind - = zoom_out
@cbind T = toggle_zoom_type
@cbind 1 = set zoom_level = 1.0
@cbind 2 = set zoom_level = 2.0
#}}}
# --- Page searching binds ---#{{{
@cbind /* = search %s
@cbind ?* = search_reverse %s
# Jump to next and previous items
@cbind n = search
@cbind N = search_reverse
# Clear search
@cbind \# = search_clear
#}}}
#}}}
# --- Tabbing binds ---#{{{
# Tab opening
@cbind tn = chain "event NEW_TAB_NEXT" "event NEXT_TAB"
@cbind <F2> = chain "event NEW_TAB_NEXT" "event NEXT_TAB"
@cbind <Ctrl>t = chain "event NEW_TAB_NEXT" "event NEXT_TAB"
@cbind tN = event NEW_TAB_NEXT
#@cbind to<uri:>_ = event NEW_TAB %s
@cbind to<uri:>_ = chain "event NEW_TAB_NEXT %s" "event NEXT_TAB"
@cbind tO<uri:\@uri>_ = chain "event NEW_TAB_NEXT %s" "event NEXT_TAB"
@cbind tp = sh 'echo "event NEW_TAB_NEXT `parcellite -p | sed s/\\\@/%40/g`" > $4'
# Closing / resting
@cbind tC = exit
@cbind tQ = event CLEAN_TABS
# Tab navigating
@cbind g< = event FIRST_TAB
@cbind g> = event LAST_TAB
#@cbind gt = event NEXT_TAB
@cbind <Ctrl>n = event NEXT_TAB
@cbind <F8> = event NEXT_TAB
#@cbind gT = event PREV_TAB
@cbind <F7> = event PREV_TAB
@cbind gt<index:>_ = event GOTO_TAB %s
#}}}
# Preset loading#{{{
set preset = event PRESET_TABS
@cbind gs<preset save:>_ = @preset save %s
@cbind glo<preset load:>_ = @preset load %s
@cbind gd<preset del:>_ = @preset del %s
@cbind gli = @preset list
#}}}
# Bookmarks and search#{{{
# --- Web searching binds ---
# with t at the beginning opens search in new tab
@cbind go<Google:>_ = uri http://www.google.com/search?q=\@<encodeURIComponent(%r)>\@
@cbind tgo<Google:>_ = chain "event NEW_TAB_NEXT http://www.google.com/search?q=\@<encodeURIComponent(%r)>\@" "event NEXT_TAB"
@cbind gi<Google Images:>_ = uri http://images.google.de/images?hl=de&q=\@<encodeURIComponent(%r)>\@&gbv=2
@cbind tgi<Google Images:>_ = chain "event NEW_TAB_NEXT http://images.google.de/images?hl=de&q=\@<encodeURIComponent(%r)>\@&gbv=2" "event NEXT_TAB"
@cbind map<Google Maps:>_ = uri http://maps.google.de/maps?q=\@<encodeURIComponent(%r)>\@
@cbind maps<Google Maps:>_ = uri http://maps.google.de/maps?q=\@<encodeURIComponent(%r)>\@
@cbind tmap<Google Maps:>_ = chain "event NEW_TAB_NEXT http://maps.google.de/maps?q=\@<encodeURIComponent(%r)>\@" "event NEXT_TAB"
@cbind tmaps<Google Maps:>_ = chain "event NEW_TAB_NEXT http://maps.google.de/maps?q=\@<encodeURIComponent(%r)>\@" "event NEXT_TAB"
@cbind ebay<Ebay:>_ = uri http://search.ebay.de/search/search.dll?from=R40&_trksid=m37&satitle=\@<encodeURIComponent(%r)>\@&category0=
@cbind tebay<Ebay:>_ = chain "event NEW_TAB_NEXT http://search.ebay.de/search/search.dll?from=R40&_trksid=m37&satitle=\@<encodeURIComponent(%r)>\@&category0=" "event NEXT_TAB"
@cbind wiki<English Wikipedia:>_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go
@cbind twiki<English Wikipedia:>_ = chain "event NEW_TAB_NEXT http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go" "event NEXT_TAB"
@cbind wp<Wikipedia:>_ = uri de.wikipedia.org/wiki/Spezial:Suche?search=\@<encodeURIComponent(%r)>\@&go=Go
@cbind twp<Wikipedia:>_ = chain "event NEW_TAB_NEXT de.wikipedia.org/wiki/Spezial:Suche?search=\@<encodeURIComponent(%r)>\@&go=Go" "event NEXT_TAB"
@cbind cpan<CPAN:>_ = uri http://search.cpan.org/search?query=\@<encodeURIComponent(%r)>\@&mode=all
@cbind tcpan<CPAN:>_ = chain "event NEW_TAB_NEXT http://search.cpan.org/search?query=\@<encodeURIComponent(%r)>\@&mode=all" "event NEXT_TAB"
@cbind tuf<UU Forum:>_ = chain "event NEW_TAB_NEXT http://ubuntuusers.de/search/?query=\@<encodeURIComponent(%r)>\@&area=forum" "event NEXT_TAB"
@cbind tuw<UU Wiki:>_ = chain "event NEW_TAB http://ubuntuusers.de/search/?query=\@<encodeURIComponent(%r)>\@&area=wiki" "event NEXT_TAB"
@cbind tleo<Leo:>_ = chain "event NEW_TAB_NEXT http://dict.leo.org/ende?lp=ende&lang=de&searchLoc=0&cmpType=relaxed§Hdr=on&spellToler=on&search=\@<encodeURIComponent(%r)>\@&relink=on" "event NEXT_TAB"
@cbind yt<YouTube:>_ = uri http://de.youtube.com/results?search_query=\@<encodeURIComponent(%r)>\@&search_type=&aq=f&oq=
@cbind tyt<YouTube:>_ = chain "event NEW_TAB_NEXT http://de.youtube.com/results?search_query=\@<encodeURIComponent(%r)>\@&search_type=&aq=f&oq=" "event NEXT_TAB"
@cbind ama<Amazon:>_ = uri http://www.amazon.de/s/ref=nb_ss_w?__mk_de_DE=%C5M%C5Z%D5%D1&url=search-alias%3Daps&field-keywords=\@<encodeURIComponent(%r)>\@
@cbind tama<Amazon:>_ = chain "event NEW_TAB_NEXT http://www.amazon.de/s/ref=nb_ss_w?__mk_de_DE=%C5M%C5Z%D5%D1&url=search-alias%3Daps&field-keywords=\@<encodeURIComponent(%r)>\@" "event NEXT_TAB"
# --- Hard-bound bookmarks ---
@cbind gh = uri http://www.uzbl.org
#}}}
# --- Handy binds ---#{{{
# Set function shortcut
@cbind set<var:>_<value:>_ = set %1 = %2
# Exit binding
@cbind ZZ = exit
# Dump config to stdout
@cbind !dump = sh "echo dump_config > $4"
# Reload all variables in the config
@cbind !reload = sh "sed '/^# === Post-load misc commands/,$d' $1 | grep '^set ' > $4"
#download url from clipboard
@cbind Dp = sh 'echo "event DOWNLOAD_REQUEST `parcellite -p | sed s/\\\@/%40/g`" > $4'
@cbind <Ctrl>q = sh 'if [ $8 = 1 ]; then echo "set view_source = 0" >> $4; echo "to 0"; else echo "set view_source = 1" >> $4; echo "to 1"; fi; echo "set uri = $6" >> $4;' \@view_source
# Use socat to directly inject commands into uzbl-core and view events
# raised by uzbl-core:
@cbind <Ctrl><Alt>t = sh 'xterm -e "socat unix-connect:$5 -"'
#}}}
# --- Mode setting binds ---#{{{
# Changing mode via set.
@cbind I = @set_mode insert
# Or toggle between modes by raising the toggle event.
set toggle_cmd_ins = @toggle_modes command insert
@cbind i = @toggle_cmd_ins
# And the global toggle bind.
@bind <Ctrl>i = @toggle_cmd_ins
#}}}
# --- Yanking & pasting binds ---#{{{
@cbind yu = sh 'echo -n $6 | parcellite'
@cbind yt = sh 'echo -n $7 | parcellite'
# Go the page from primary selection
@cbind p = sh 'echo "uri `parcellite -p | sed s/\\\@/%40/g`" > $4'
# Go to the page in clipboard
@cbind P = sh 'echo "uri `parcellite -c | sed s/\\\@/%40/g`" > $4'
# Start a new uzbl instance from the page in primary selection
#@cbind 'p = sh 'exec uzbl-browser --uri $(parcellite -p)'
# paste primary selection into keycmd at the cursor position
@bind <Shift-Insert> = sh 'echo "event INJECT_KEYCMD `parcellite -p | sed s/\\\@/%40/g`" > $4'
#}}}
# --- Bookmark inserting binds ---#{{{
@cbind <Ctrl>b<tags:>_ = sh 'echo -e "$6 $7\t%s" >> $HOME/.local/share/uzbl/bookmarks'
# Or use a script to insert a bookmark.
@cbind <Ctrl>B = spawn @scripts_dir/insert_bookmark.sh
# --- Bookmark/history loading ---
@cbind Lh = spawn @scripts_dir/load_url_from_history.sh
@cbind Lb = spawn @scripts_dir/load_url_from_bookmarks.sh
#}}}
# --- Link following (similar to vimperator and konqueror) ---#{{{
# Set custom keys you wish to use for navigation. Some common examples:
#set follow_hint_keys = 0123456789
#set follow_hint_keys = qwerty
set follow_hint_keys = asdfghjkl;
#set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234
@cbind f* = script @scripts_dir/follow.js '@follow_hint_keys %s'
#@cbind F* = script @scripts_dir/follow_newtab.js '@follow_hint_keys %s'
#}}}
# --- Script and Plugin blocking bindings --- #{{{
@cbind sus = spawn @scripts_dir/scriptblock.pl unblock_scripts
@cbind sup = spawn @scripts_dir/scriptblock.pl unblock_plugins
@cbind sbs = spawn @scripts_dir/scriptblock.pl block_scripts
@cbind sbp = spawn @scripts_dir/scriptblock.pl block_plugins
@cbind sts = spawn @scripts_dir/scriptblock.pl unblock_scripts_temp
@cbind stp = spawn @scripts_dir/scriptblock.pl unblock_plugins_temp
@cbind suc = spawn @scripts_dir/cookies.pl unblock
@cbind stc = spawn @scripts_dir/cookies.pl unblock_temp
@cbind sbc = spawn @scripts_dir/cookies.pl block # block cookies again - remove from whitelist
@cbind sbh = spawn @scripts_dir/history.pl disable
@cbind suh = spawn @scripts_dir/history.pl enable
#}}}
# --- Form filler binds ---#{{{
# This script allows you to configure (per domain) values to fill in form
# fields (eg login information) and to fill in these values automatically.
# This implementation allows you to save multiple profiles for each form
# (think about multiple accounts on some website).
set formfiller = spawn @scripts_dir/eFormFiller.pl
@cbind za = @formfiller add
@cbind ze = @formfiller edit
@cbind zn = @formfiller new
@cbind zl = chain "@formfiller load" "@set_mode insert"
@cbind zo = @formfiller once
#}}}
# --- Session bindings ---#{{{
set session = spawn @scripts_dir/sessions.pl
@cbind so<Session:>_ = @session open %s
@cbind sdo = @session open
@cbind sq = @session open query_session_file
@cbind ss<Session:>_ = @session save %s
@cbind sds = @session save
@cbind sc<Session:>_ = @session save_and_quit %s
@cbind sdc = @session save_and_quit
@cbind sQ = @session kill
#}}}
# --- Examples ---
# Example showing how to use uzbl's fifo to execute a command.
#@bind X1 = sh 'echo "set zoom_level = 1.0" > "$4"'
#@bind X2 = sh 'echo "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
# }}}
# === Context menu items =====================================================# {{{
# Default context menu
menu_add Google = set uri = http://google.com
menu_add Go Home = set uri = http://uzbl.org
menu_separator separator_1
menu_add Quit uzbl = exit
# Link context menu
menu_link_add Print Link = print \@SELECTED_URI
# }}}
# === Mode configuration =====================================================# {{{
# Define some mode specific uzbl configurations.
set command = @mode_config command
set insert = @mode_config insert
set stack = @mode_config stack
# Command mode config.
@command keycmd_style = foreground="red"
@command status_background = #202020
@command mode_indicator = Cmd
# Insert mode config.
@insert status_background = #303030
@insert mode_indicator = Ins
# Multi-stage-binding mode config.
@stack keycmd_events = 1
@stack modcmd_updates = 1
@stack forward_keys = 0
@stack keycmd_style = foreground="red"
@stack prompt_style = foreground="#888" weight="light"
@stack status_background = #202020
@stack mode_indicator = Bnd
set default_mode = command
# }}}
# === Tab configuration ======================================================# {{{
# General settings
set show_tablist = 1
set show_gtk_tabs = 0
set tablist_top = 1
set gtk_tab_pos = top
set switch_to_new_tabs = 0
set capture_new_windows = 1
# Titles
set tab_titles = 1
set new_tab_title = New
set max_title_len = 20
set show_ellipsis = 1
# }}}
# === Post-load misc commands ===============================================# {{{
# Set the "home" page. Doesn't work atm
set uri = http://zinformatik.de
# }}}
# for a better use with vim. All the markings: #{{{ and #}}} belong to it
# vim: foldmethod=marker commentstring=#%s