aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/sxhkd/sxhkdrc4
-rw-r--r--config/uzbl/config5
-rwxr-xr-xconfig/uzbl/scripts/youtube.pl4
3 files changed, 12 insertions, 1 deletions
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:\@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'"
+