diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-23 17:55:24 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-23 17:55:24 +0100 |
commit | 4860f85d5e590c2fa9a5d2fd6fb7400c8a3d86da (patch) | |
tree | d61a1f64fc06cf33c4d565a0880c9cda7e860e04 /config/uzbl | |
parent | c57eb03dd63cdc0c2cb945a8bcf011a11c6ac604 (diff) | |
download | dotfiles-4860f85d5e590c2fa9a5d2fd6fb7400c8a3d86da.tar.gz dotfiles-4860f85d5e590c2fa9a5d2fd6fb7400c8a3d86da.tar.bz2 dotfiles-4860f85d5e590c2fa9a5d2fd6fb7400c8a3d86da.zip |
add youtube key to uzbl
Diffstat (limited to 'config/uzbl')
-rw-r--r-- | config/uzbl/config | 5 | ||||
-rwxr-xr-x | config/uzbl/scripts/youtube.pl | 4 |
2 files changed, 8 insertions, 1 deletions
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:\@uri>_ = 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 <Ctrl>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'" + |