aboutsummaryrefslogtreecommitdiff
path: root/config/uzbl
diff options
context:
space:
mode:
Diffstat (limited to 'config/uzbl')
-rw-r--r--config/uzbl/config5
-rwxr-xr-xconfig/uzbl/scripts/youtube.pl4
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'"
+