diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-02-10 03:42:45 +0100 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-02-10 03:42:45 +0100 |
commit | 6bbdad6463bf5ef2015a78f47f6d780649095dc9 (patch) | |
tree | ca4c59f2e9e5eb8d67e587a8a319776d483a8497 /bin | |
parent | fdedec1b4ecd17106603c2960f78253625d1d125 (diff) |
Add youtube commands.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/play-kj | 2 | ||||
-rwxr-xr-x | bin/play-yt | 6 |
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.* |