summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2016-02-10 03:42:45 +0100
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2016-02-10 03:42:45 +0100
commit6bbdad6463bf5ef2015a78f47f6d780649095dc9 (patch)
treeca4c59f2e9e5eb8d67e587a8a319776d483a8497 /bin
parentfdedec1b4ecd17106603c2960f78253625d1d125 (diff)
Add youtube commands.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/play-kj2
-rwxr-xr-xbin/play-yt6
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/play-kj b/bin/play-kj
new file mode 100755
index 0000000..a74ed96
--- /dev/null
+++ b/bin/play-kj
@@ -0,0 +1,2 @@
+#!/bin/bash
+livestreamer "$(xclip -selection clipboard -out)" best \ No newline at end of file
diff --git a/bin/play-yt b/bin/play-yt
new file mode 100755
index 0000000..cca0628
--- /dev/null
+++ b/bin/play-yt
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+rm /tmp/youtube.*
+youtube-dl -o /tmp/youtube "$@" &
+sleep 5s && mpv /tmp/youtube.*
+rm /tmp/youtube.*