From 69fa10952ab31f16db8ceba59186564bb91b0f0c Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 15 Feb 2015 00:03:26 +0100 Subject: slight uzbl fixes --- config/sxhkd/sxhkdrc | 2 +- config/uzbl/config | 21 +++++++++++++++++---- config/uzbl/scripts/gonew.pl | 4 ++-- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index b3a72de..3eec7f7 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -116,7 +116,7 @@ grave ; slash ~/.ratpoison/create_frame super + u - uzbl-tabbed + uzbl-browser super + f firefox diff --git a/config/uzbl/config b/config/uzbl/config index c69255e..ded6bf2 100644 --- a/config/uzbl/config +++ b/config/uzbl/config @@ -295,7 +295,7 @@ set ebind = @mode_bind global,-insert # Appearance binds #@cbind t = toggle show_status -@cbind t_ = spawn /home/vasko/.config/uzbl/scripts/gonew.pl %s +@cbind t_ = spawn /home/vasko/.config/uzbl/scripts/gonew.pl %s # Page searching binds @@ -311,7 +311,7 @@ set ebind = @mode_bind global,-insert # Web searching binds @cbind d_ = uri http://www.google.com/search?q=\@\@ #@cbind dg_ = uri http://duckduckgo.com/?q=%s -@cbind \\awiki_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@\@&go=Go +@cbind a_ = 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 # Handy binds @@ -320,6 +320,7 @@ set ebind = @mode_bind global,-insert # Exit binding @cbind ZZ = exit @cbind :wq = exit +@cbind :_ = %s # Dump config to stdout @cbind !dump = sh 'echo dump_config > "$UZBL_FIFO"' # Reload all variables in the config @@ -423,8 +424,20 @@ set formfiller = spawn @scripts_dir/formfiller.sh # Tab opening @cbind gn = event NEW_TAB @cbind gN = event NEW_TAB_NEXT -@cbind go_ = event NEW_TAB %s -@cbind gO_ = event NEW_TAB_NEXT %s +#@cbind go_ = event NEW_TAB %s +#@cbind gO_ = event NEW_TAB_NEXT %s +@cbind gop = uri https://sites.google.com/a/skola.malmo.se/ib12-physics-hl/ +@cbind gob = uri https://sites.google.com/a/skola.malmo.se/ib12slbio/ +@cbind goc = uri https://sites.google.com/a/skola.malmo.se/hl-chemistry-ib12/ +@cbind goe = uri https://sites.google.com/a/skola.malmo.se/langlit-ib12/ +@cbind gos = uri https://sites.google.com/a/skola.malmo.se/swedish-b-ib12/ +@cbind got = uri https://sites.google.com/a/skola.malmo.se/wrtok/ +@cbind gom = uri https://sites.google.com/a/skola.malmo.se/ib-maths-hl/ +@cbind goo = uri http://organizer.eu5.org/ +@cbind goh = uri https://vaskozl.no-ip.biz/ +@cbind gog = uri https://www.gmail.com/ +@cbind gof = uri https://www.facebook.com/ +@cbind go9 = uri https://www.9gag.com/ # Closing / resting @cbind x = exit diff --git a/config/uzbl/scripts/gonew.pl b/config/uzbl/scripts/gonew.pl index 480dc4f..aab4344 100755 --- a/config/uzbl/scripts/gonew.pl +++ b/config/uzbl/scripts/gonew.pl @@ -8,9 +8,9 @@ my $fifo = $ENV{'UZBL_FIFO'}; if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) { # Replace this with your search engine - qx(echo "event new_tab http://www.google.com/search?q=@ARGV" > $fifo); + qx(uzbl-browser --uri "http://www.google.com/search?q=@ARGV"); } else { - qx(echo "event new_tab @cmd" > $fifo); + qx(uzbl-browser --uri @cmd"); } -- cgit v1.2.3-54-g00ecf