From 4c464f782688c471b417c09293e49ad309964314 Mon Sep 17 00:00:00 2001 From: vaskozl Date: Wed, 25 Feb 2015 21:44:08 +0100 Subject: uzbl and vimrc update --- config/uzbl/config | 25 ++++++++++++------------- config/uzbl/scripts/download.sh | 6 +++--- 2 files changed, 15 insertions(+), 16 deletions(-) (limited to 'config') diff --git a/config/uzbl/config b/config/uzbl/config index e7735de..6a36779 100644 --- a/config/uzbl/config +++ b/config/uzbl/config @@ -122,7 +122,7 @@ set download_handler spawn_sync @scripts_dir/download.sh # === Behaviour and appearance =============================================== # Custom CSS can be defined here, including link follower hint styles -set stylesheet_uri file://@config_home/style.css +css add file://@config_home/style.css # If WebKits builtin authentication dialog should be used, if enabling remember # to disable external authentication handlers @@ -166,7 +166,7 @@ set progress.pending # === Useragent setup ======================================================== #set useragent Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) -set useragent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 +set useragent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18 # === Configure cookie blacklist ============================================= @@ -268,8 +268,8 @@ set ebind @mode_bind global,-insert # open a new window or a new tab (see the on_event NEW_WINDOW settings above) #@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 +@cbind w_ = spawn @config_home/scripts/gowiki.pl %s +@cbind W_ = spawn @config_home/scripts/gowikio.pl %s @cbind a_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@\@&go=Go @@ -285,14 +285,14 @@ set ebind @mode_bind global,-insert @cbind b = scroll vertical -100% @cbind e = scroll vertical -50% @cbind s = scroll vertical 50% -@cbind << = scroll vertical begin -@cbind >> = scroll vertical end +@cbind gg = scroll vertical begin +@cbind G = scroll vertical end @cbind = scroll vertical begin @cbind = scroll vertical end @cbind ^ = scroll horizontal begin @cbind $ = scroll horizontal end @cbind = scroll vertical end -@cbind G_ = scroll vertical %r! +#@cbind G_ = scroll vertical %r! # The first '_' is literal, so type '_G' to trigger this binding. @cbind _G_ = scroll horizontal %r! @@ -322,14 +322,13 @@ set ebind @mode_bind global,-insert @cbind /* = search find %s @cbind ?* = search rfind %s # Jump to next and previous items -@cbind n = search find -@cbind N = search rfind +@cbind n = search next +@cbind N = search prev # Print pages to a printer @cbind p = hardcopy page # Web searching binds -@cbind gg_ = uri http://www.google.com/search?q=\@\@ #@cbind ddg_ = uri http://duckduckgo.com/?q=%s @cbind \\awiki_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@\@&go=Go @cbind \\wiki_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@\@&go=Go @@ -351,14 +350,14 @@ set ebind @mode_bind global,-insert # Uri opening prompts #@cbind o_ = uri %s -@cbind o_ = spawn /home/vasko/.config/uzbl/scripts/goto.pl %s -@cbind t_ = spawn /home/vasko/.config/uzbl/scripts/gonew.pl %s +@cbind o_ = spawn @config_home/scripts/goto.pl %s +@cbind t_ = spawn @config_home/scripts/gonew.pl %s # Or have it load the current uri into the keycmd for editing @cbind O_ = uri %s # Open youtube with mpv -@cbind Y = spawn /home/vasko/.config/uzbl/scripts/youtube.pl +@cbind Y = spawn @config_home/scripts/youtube.pl # Mode setting binds @cbind i = @set_mode insert diff --git a/config/uzbl/scripts/download.sh b/config/uzbl/scripts/download.sh index 4ffb5e8..398f271 100755 --- a/config/uzbl/scripts/download.sh +++ b/config/uzbl/scripts/download.sh @@ -47,9 +47,9 @@ esac source ~/.colors; -#if ! /home/vasko/.ratpoison/ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io 2 "Download \"$suggested_filename\"?" false Yes true No false;then -#path=''; -#fi +if ! /home/vasko/.ratpoison/ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io 2 "Download \"$suggested_filename\"?" false Yes true No false;then +path=''; +fi # Do nothing if we don't want to save the file [ -z "$path" ] && exit 0 -- cgit v1.2.3-54-g00ecf