-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
111 lines (78 loc) · 3.82 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
set history_handler = spawn /home/bct/projects/uzbl/examples/data/uzbl/scripts/history.sh
set download_handler = spawn /home/bct/projects/uzbl/examples/data/uzbl/scripts/download.sh
set cookie_handler = spawn /home/bct/projects/uzbl-config/scripts/cookies.rb
set minimum_font_size = 6
set font_size = 11
# monospace_size defaults to font_size, but you can alter it independently
#set monospace_size = 10
# use with bind ... = sh <shell-oneliner>
set shell_cmd = sh -c
# Behaviour and appearance
set show_status = 1
set status_background = #303030
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>
set status_top = 0
set title_format_short = \@TITLE - Uzbl browser <\@NAME>
set title_format_long = \@keycmd \@MODE \@TITLE - Uzbl browser <\@NAME> > \@SELECTED_URI
# set the characters to use for, and the width of the progress bar
set status_pbar_done = X
set status_pbar_pending = +
set status_pbar_width = 12
set insert_indicator = [X]
set command_indicator =
set modkey = Mod1
# reset to command mode when new page is loaded
set reset_command_mode = 1
set proxy_url = http://127.0.0.1:8118
# values 0-3
set http_debug = 1
set useragent = Uzbl (Webkit @WEBKIT_MAJOR.@WEBKIT_MINOR.@WEBKIT_MICRO)
#set max_conns = 0
#set max_conns_host = 0
set fifo_dir = /tmp
set socket_dir = /tmp
# Key bindings
bind j = scroll_vert 20
bind k = scroll_vert -20
bind h = scroll_horz -20
bind l = scroll_horz 20
# bind a space
#bind = scroll_vert 550
bind << = scroll_begin
bind >> = scroll_end
bind b = back
bind m = forward
bind s = stop
bind r = reload
bind R = reload_ign_cache
bind t = toggle_status
bind /* = search %s
bind ?* = search_reverse %s
bind n = search
bind N = search_reverse
bind o_ = uri %s
bind -gg_ = uri http://www.google.com/search?q=%s
bind -nb_ = uri http://v3.newzbin.com/search/query/?q=%s&searchaction=Go
bind i = set insert_mode = 1
bind U = spawn /home/bct/projects/uzbl/examples/data/uzbl/scripts/load_url_from_history.sh
bind B = spawn /home/bct/projects/uzbl/examples/data/uzbl/scripts/insert_bookmark.sh
bind u = spawn /home/bct/projects/uzbl/examples/data/uzbl/scripts/load_url_from_bookmarks.sh
bind y = sh "echo -n $6 | xclip"
bind p = sh "echo uri `xclip -selection primary -o` > $4"
bind P = sh "/home/bct/projects/uzbl/uzbl -u `xclip -selection primary -o` &"
bind T = spawn /home/bct/projects/uzbl/uzbl
bind O = set keycmd = o@uri
bind ]] = script /home/bct/projects/uzbl-config/scripts/follow_next.js
bind [[ = script /home/bct/projects/uzbl-config/scripts/follow_prev.js
# go up one level
bind gu = js window.location = document.location.toString().split(/\//).slice(0,-1).join("/")
bind quit = spawn /home/bct/projects/uzbl-config/scripts/session.sh endsession
bind LOAD = spawn /home/bct/projects/uzbl-config/scripts/session.sh launch
bind !reload = sh 'cat $1 > $4'
set uri = http://necronomicorp.com/bct
# n3on's linkfollower
bind :follow * = js UzblHints.follow("%s");
bind f = keycmd :follow
set load_start_handler = set status_message = <span foreground="khaki">\@uri wait</span>
set load_commit_handler = chain 'set status_message = <span foreground="green">\@uri recv</span>' 'script /home/bct/projects/uzbl-config/scripts/n3on-follow.js'
set load_finish_handler = set status_message = <span foreground="gold">done</span>