3deeac176a48d0040145813ba4cb436726782182
[uzbl-mobile] / examples / configs / sampleconfig-dev
1
2 # example uzbl config. in a real config, we should obey the xdg spec
3 # all settings are optional.  you can use uzbl without any config at all (but it won't do much)
4
5 # keyboard behavior is vimstyle by default (all actions -> 1 key). set
6 # always_insert_mode to always be in insert mode and disable going out of it.
7 # if you do this, make sure you've set a modkey so you can reach the actions
8 # from insert mode by combining them with the modkey
9
10 # TODO: ability to attach misc things (spawn <foo>, script <bar>,.. to internal events)
11 # Usually you want to spawn a script to handle things, but any action (such as sh) can be used
12 set history_handler  = spawn ./examples/scripts/history.sh
13 set download_handler = spawn ./examples/scripts/download.sh
14 set cookie_handler   = spawn ./examples/scripts/cookies.sh
15
16 set minimum_font_size = 6
17 set font_size = 11
18 ## monospace_size defaults to font_size, but you can alter it independently
19 #set monospace_size = 10
20
21 ## Display or supress images within html sites
22 #set autoload_images = 0
23
24 ## Shrink images to window size
25 #set autoshrink_images = 0
26
27 ## Spellchecker
28 #set enable_spellcheck = 1
29
30 ## Private browsing
31 #set enbale_private = 0
32
33 ## The URI of a stylesheet that is applied to every page
34 #set stylesheet_uri = http://www.user.com/mystylelesheet.css
35
36 ## enable/disable JavaScript
37 #set disbale_scripts = 1
38
39 ## Whether text areas are resizable
40 #set resizeable_text_areas = 1
41
42 ## The default encoding used to display text
43 #set default_encoding = iso-8859-1
44
45 ## Whether background images should be printed
46 #set print_background = 0
47
48 ## Enforce a resolution of 96 DPI. This is meant for compatibility with
49 ## web pages which cope badly with different screen resolutions
50 #set enforce_96_dpi = 1
51
52
53 #
54 # use with bind ... = sh <shell-oneliner>
55 set shell_cmd         = sh -c
56
57
58
59 # Behaviour and appearance
60 set show_status       = 1
61 # you can optionally use this setting to override the background color of the statusbar from your GTK theme.
62 set status_background = #303030
63 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">MSG</span><span foreground="#606060">SELECTED_URI</span></span>
64 set status_top = 0
65 # define how your titlebar should look like. (short = statusbar is also shown, long = show everything you must see if statusbar is off)
66 set title_format_short = TITLE - Uzbl browser <NAME>
67 set title_format_long = KEYCMD MODE TITLE - Uzbl browser <NAME> > SELECTED_URI
68 # set the characters to use for, and the width of the progress bar
69 set status_pbar_done  = *
70 set status_pbar_pending = -
71 set status_pbar_width = 12
72
73 set modkey = Mod1
74 # reset to command mode when new page is loaded
75 set reset_command_mode = 1
76 # this var has precedence over reset_command_mode
77 set always_insert_mode = 0
78
79 # to start a local socks server, do : ssh -fND localhost:8118 localhost
80 #set  proxy_url       = http://127.0.0.1:8118
81 #values 0-3
82 #set  http_debug      = 0
83 #set  useragent       = uzbl (Webkit WEBKIT_MAJOR.WEBKIT_MINOR.WEBKIT_MICRO)
84 # Example user agent containing everything:
85 set  useragent       = Uzbl (Webkit WEBKIT_MAJOR.WEBKIT_MINOR.WEBKIT_MICRO) (SYSNAME NODENAME KERNREL KERNVER ARCH_SYSTEM [ARCH_UZBL]) (Commit COMMIT)
86 #set  max_conns       = 0
87 #set  max_conns_host  = 0
88
89 set fifo_dir = /tmp
90 set socket_dir = /tmp
91
92 # Key bindings
93 bind    j         = scroll_vert 20
94 bind    k         = scroll_vert -20
95 bind    h         = scroll_horz -20
96 bind    l         = scroll_horz 20
97 bind    <<        = scroll_begin
98 bind    >>        = scroll_end
99 bind    b         = back
100 bind    m         = forward
101 bind    s         = stop
102 bind    r         = reload
103 bind    R         = reload_ign_cache
104 bind    +         = zoom_in
105 bind    -         = zoom_out
106 bind    t         = toggle_status
107 # Hilight matches. Notice the * after the slash - it makes the command incremental, i.e. gets called
108 # on every character you type.  You can do `bind /_ = search %s' if you want it less interactive.
109 bind    /*        = search %s
110 bind    ?*        = search_reverse %s
111 #jump to next
112 bind    n         = search
113 bind    N         = search_reverse
114 bind    gh        = uri http://www.uzbl.org
115 #TODO: set uri?
116 bind    o _       = uri %s
117 bind    :wiki _   = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
118 bind    gg _      = uri http://www.google.com/search?q=%s
119 bind    i         = toggle_insert_mode
120 # disable insert mode (1 to enable).  note that Esc works to disable, regardless of this setting
121 bind    I         = toggle_insert_mode 0
122 # Enclose the executable in quotes if it has spaces.  Any additional parameters you use will
123 # appear AFTER the default parameters
124 bind    B         = spawn ./examples/scripts/insert_bookmark.sh
125 bind    U         = spawn ./examples/scripts/load_url_from_history.sh
126 bind    u         = spawn ./examples/scripts/load_url_from_bookmarks.sh
127 # with the sample yank script, you can yank one of the arguments into clipboard/selection
128 bind    yurl      = spawn ./examples/scripts/yank.sh 8 primary
129 bind    ytitle    = spawn ./examples/scripts/yank.sh 9 clipboard
130 # does the same as yurl but without needing a script
131 bind    y2url     = sh 'echo -n $6 | xclip'
132 # go the page from primary selection
133 bind    p         = sh "echo act uri `xclip -selection primary -o` > $4"
134 # go to the page in clipboard
135 bind    P         = sh "echo act uri `xclip -selection clipboard -o` > $4"
136 bind    ZZ        = exit
137 bind    S         = js alert("hi");
138 # example showing how to use sh
139 # it sends a command to the fifo, whose path is told via a positional param
140 # if fifo_dir is not set, it'll echo to a file named (null) somewhere >:) remember to delete it
141 # The body of the shell command should be one parameter, so if it has spaces like here,
142 # you must enclose it in quotes.  Remember to escape (and double-escape) quotes and backslashes
143 # in the body.  Any additional parameters you use will appear AFTER the default parameters (cfg file
144 # path, fifo & socket dirs, etc.)
145 bind    XS        = sh 'echo "act script alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
146
147
148 # this script allows you to configure (per domain) values to fill in form fields (eg login information) and to fill in these values automatically
149 bind za = spawn ./examples/scripts/formfiller.sh
150 bind ze = spawn ./examples/scripts/formfiller.sh edit
151 bind zn = spawn ./examples/scripts/formfiller.sh new
152 bind zl = spawn ./examples/scripts/formfiller.sh load
153
154 # other - more advanced - implementation using perl: (could not get this to run - Dieter )
155 bind LL = spawn ./examples/scripts/formfiller.pl load
156 bind LN = spawn ./examples/scripts/formfiller.pl new
157 bind LE = spawn ./examples/scripts/formfiller.pl edit
158
159 # we ship some javascripts to do keyboard based link hinting/following.  (webkit does not have C DOM bindings yet)
160 # this is similar to how it works in vimperator (and konqueror)
161 # TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ?
162 #hit F to toggle the Hints (now in form of link numbering)
163 bind    F = script ./examples/scripts/hint.js
164 # the most stable version:
165 bind    fl* = script ./examples/scripts/follow_Numbers.js %s
166 # using strings, not polished yet:
167 bind    fL* = script ./examples/scripts/follow_Numbers_Strings.js %s
168
169 # you can use this to disable all plugins
170 set disable_plugins = 0
171
172 # "home" page if you will
173 set uri = uzbl.org