summaryrefslogtreecommitdiff
path: root/bin/dmscripts/dmyt-not
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-15 16:31:56 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-15 16:47:43 +0100
commit3b2a78935fd6550521f719a10e5b0fceb1ddb350 (patch)
tree7c50801d6bb5b7abba3df6352ed43df454a4dbcb /bin/dmscripts/dmyt-not
Not really but, First commit!
Diffstat (limited to 'bin/dmscripts/dmyt-not')
-rwxr-xr-xbin/dmscripts/dmyt-not6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/dmscripts/dmyt-not b/bin/dmscripts/dmyt-not
new file mode 100755
index 0000000..4783a8d
--- /dev/null
+++ b/bin/dmscripts/dmyt-not
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+# Open a video from channels.yt-not by selecting the channel
+channel="$(awk '{print $2}' ~/.local/share/yt-not/channels.yt-not | dmenu -l 2 -g 4)"
+video_id="$(awk "/$channel/ {print \$3}" ~/.local/share/yt-not/channels.yt-not )"
+video="https://youtube.com/watch?v=${video_id}"
+mpv $video