From 4860f85d5e590c2fa9a5d2fd6fb7400c8a3d86da Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Mon, 23 Feb 2015 17:55:24 +0100 Subject: add youtube key to uzbl --- config/sxhkd/sxhkdrc | 4 ++++ config/uzbl/config | 5 ++++- config/uzbl/scripts/youtube.pl | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 config/uzbl/scripts/youtube.pl (limited to 'config') diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index c4e8c44..3709f54 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -23,6 +23,10 @@ grave ; t grave ; b bspc desktop -B +# banish mouse +grave ; B + xdotool mousemove 10000 100000 + grave ; {u,U,o} bspc window -t {floating,pseudo_tiled,fullscreen} diff --git a/config/uzbl/config b/config/uzbl/config index e413be9..c39c50c 100644 --- a/config/uzbl/config +++ b/config/uzbl/config @@ -158,7 +158,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_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 #set useragent = Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 # === Configure cookie blacklist ======================================================== @@ -343,6 +343,9 @@ set ebind = @mode_bind global,-insert # 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 + # Mode setting binds @cbind i = @set_mode insert @bind i = @set_mode insert diff --git a/config/uzbl/scripts/youtube.pl b/config/uzbl/scripts/youtube.pl new file mode 100755 index 0000000..5a0e99a --- /dev/null +++ b/config/uzbl/scripts/youtube.pl @@ -0,0 +1,4 @@ +#!/usr/bin/env perl +my $url = $ENV{'UZBL_URI'}; +exec "mpv '$url'" + -- cgit v1.2.3-54-g00ecf