From f7ac47a1102006842d074146237c756648478675 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Thu, 12 Feb 2015 19:45:58 +0100 Subject: bspwm update --- config/uzbl/config | 83 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 28 deletions(-) (limited to 'config/uzbl/config') diff --git a/config/uzbl/config b/config/uzbl/config index b66b5cc..c69255e 100644 --- a/config/uzbl/config +++ b/config/uzbl/config @@ -3,12 +3,33 @@ # === Core settings ========================================================== +# Polipo proxy for caching +set proxy_url = http://127.0.0.1:8123 + # common directory locations set prefix = @(echo $PREFIX)@ set data_home = @(echo $XDG_DATA_HOME)@ set cache_home = @(echo $XDG_CACHE_HOME)@ set config_home = @(echo $XDG_CONFIG_HOME)@ + +# colors +set color1 = @(source ~/.colors; echo $COLOR1)@ +set color2 = @(source ~/.colors; echo $COLOR2)@ +set color3 = @(source ~/.colors; echo $COLOR3)@ +set color4 = @(source ~/.colors; echo $COLOR4)@ +set color5 = @(source ~/.colors; echo $COLOR5)@ +set color6 = @(source ~/.colors; echo $COLOR6)@ +set color7 = @(source ~/.colors; echo $COLOR7)@ +set color8 = @(source ~/.colors; echo $COLOR8)@ +set color9 = @(source ~/.colors; echo $COLOR9)@ +set color10 = @(source ~/.colors; echo $COLOR10)@ +set color11 = @(source ~/.colors; echo $COLOR11)@ +set color12 = @(source ~/.colors; echo $COLOR12)@ +set color13 = @(source ~/.colors; echo $COLOR13)@ +set color14 = @(source ~/.colors; echo $COLOR14)@ +set color15 = @(source ~/.colors; echo $COLOR15)@ + # Interface paths. set fifo_dir = /tmp set socket_dir = /tmp @@ -35,7 +56,7 @@ set set_mode = set mode = set set_status = set status_message = # Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable" -set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts +set scripts_dir = @data_home/uzbl/scripts:@prefix/share/uzbl/examples/data:scripts # === Hardcoded handlers ===================================================== @@ -44,7 +65,7 @@ set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts set scheme_handler = sync_spawn @scripts_dir/scheme.py #set request_handler = sync_spawn @scripts_dir/request.py set authentication_handler = sync_spawn @scripts_dir/auth.py -set download_handler = sync_spawn @scripts_dir/download.sh +set download_handler = sync_spawn /home/vasko/.config/uzbl/scripts/download.sh # === Dynamic event handlers ================================================= @@ -67,7 +88,7 @@ set download_handler = sync_spawn @scripts_dir/download.sh @on_event LOAD_START @set_mode # Load commit handlers -@on_event LOAD_COMMIT @set_status recv +@on_event LOAD_COMMIT @set_status recv # add some javascript to the page for other 'js' and 'script' commands to access later. @on_event LOAD_COMMIT js uzbl = {}; @@ -101,21 +122,21 @@ set show_status = 0 set status_top = 0 set status_background = #1c1c1c -set modcmd_style = weight="bold" foreground="red" -set keycmd_style = weight="light" foreground="red" -set prompt_style = foreground="grey" +set modcmd_style = weight="bold" foreground="@color13" +set keycmd_style = weight="light" foreground="@color13" +set prompt_style = foreground="@color2" set cursor_style = underline="single" -set completion_style = foreground="green" +set completion_style = foreground="@color2" set hint_style = weight="bold" set mode_section = [\@[\@mode_indicator]\@] set keycmd_section = [\@[\@keycmd_prompt]\@\@modcmd\@keycmd\@completion_list] -set progress_section = \@[\@progress.output]\@ -set scroll_section = \@[\@scroll_message]\@ -set uri_section = \@[\@uri]\@ -set name_section = \@[\@NAME]\@ -set status_section = \@status_message -set selected_section = \@[\@SELECTED_URI]\@ +set progress_section = \@[\@progress.output]\@ +set scroll_section = \@[\@scroll_message]\@ +set uri_section = \@[\@uri]\@ +set name_section = \@[\@NAME]\@ +set status_section = \@status_message +set selected_section = \@[\@SELECTED_URI]\@ set download_section = \@downloads @@ -134,7 +155,8 @@ set progress.pending = # === Useragent setup ======================================================== -set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) +#set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) +set useragent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A # === Configure cookie blacklist ======================================================== # Accept 'session cookies' from uzbl.org (when you have a whitelist all other cookies are dropped) @@ -232,13 +254,15 @@ set ebind = @mode_bind global,-insert @cbind :_ = %s # open a new window or a new tab (see the on_event NEW_WINDOW settings above) -@cbind w = event REQ_NEW_WINDOW +#@cbind w = event REQ_NEW_WINDOW +@cbind w_ = spawn /home/vasko/.config/uzbl/scripts/gowiki.pl %s +@cbind W_ = spawn /home/vasko/.config/uzbl/scripts/gowikio.pl %s # Page movement binds @cbind j = scroll vertical 20 @cbind k = scroll vertical -20 -@cbind h = scroll horizontal -20 -@cbind l = scroll horizontal 20 +@cbind H = scroll horizontal -20 +@cbind L = scroll horizontal 20 @cbind = scroll vertical -100% @cbind = scroll vertical 100% @cbind f = scroll vertical 100% @@ -271,7 +295,8 @@ set ebind = @mode_bind global,-insert # Appearance binds #@cbind t = toggle show_status -@cbind t_ = spawn /usr/bin/uzbl-browser --uri %s +@cbind t_ = spawn /home/vasko/.config/uzbl/scripts/gonew.pl %s + # Page searching binds @cbind /* = search %s @@ -294,7 +319,7 @@ set ebind = @mode_bind global,-insert #@cbind s__ = set %1 = %2 # Exit binding @cbind ZZ = exit -@cbind x = exit +@cbind :wq = exit # Dump config to stdout @cbind !dump = sh 'echo dump_config > "$UZBL_FIFO"' # Reload all variables in the config @@ -306,7 +331,9 @@ set ebind = @mode_bind global,-insert #@cbind t = sh 'urxvt -e socat unix-connect:"$UZBL_SOCKET" -' # Uri opening prompts -@cbind o_ = uri %s +#@cbind o_ = uri %s +@cbind o_ = spawn /home/vasko/.config/uzbl/scripts/goto.pl %s +#@cbind o _ = spawn /home/vasko/.config/uzbl/scripts/goto.js '%s' # Or have it load the current uri into the keycmd for editing @cbind O_ = uri %s @@ -400,14 +427,14 @@ set formfiller = spawn @scripts_dir/formfiller.sh @cbind gO_ = event NEW_TAB_NEXT %s # Closing / resting -@cbind gC = exit +@cbind x = exit @cbind gQ = event CLEAN_TABS # Tab navigating @cbind g< = event FIRST_TAB @cbind g> = event LAST_TAB -@cbind gt = event NEXT_TAB -@cbind gT = event PREV_TAB +@cbind l = event NEXT_TAB +@cbind h = event PREV_TAB @cbind gi_ = event GOTO_TAB %s # Preset loading @@ -437,23 +464,23 @@ set insert = @mode_config insert set stack = @mode_config stack # Command mode config. -@command keycmd_style = foreground="red" -@command status_background = #202020 +@command keycmd_style = foreground="@color13" +@command status_background = #1c1c1c @command mode_indicator = Cmd @command keycmd_events = 1 @command forward_keys = 0 @command modcmd_updates = 1 # Insert mode config. -@insert status_background = #303030 +@insert status_background = #1c1c1c @insert mode_indicator = Ins @insert forward_keys = 1 @insert keycmd_events = 0 @insert modcmd_updates = 0 # Multi-stage-binding mode config. -@stack keycmd_style = foreground="red" -@stack status_background = #202020 +@stack keycmd_style = foreground="@color13" +@stack status_background = #1c1c1c @stack mode_indicator = Bnd @stack prompt_style = foreground="#888" weight="light" @stack keycmd_events = 1 -- cgit v1.2.3-54-g00ecf