commit 31afd6d
hovercats
·
2023-02-22 19:53:42 +0000 UTC
parent 47df503
dmpv: port to rc
1 files changed,
+16,
-0
A
rc/dmpv
A
rc/dmpv
+16,
-0
1@@ -0,0 +1,16 @@
2+#!/bin/rc
3+
4+# A tiny script for launching videos inside Videos dir with mpv
5+# No more need for a detached terminal taking up your screen space
6+# you can also delete the selected video with -d option
7+
8+DIR=$HOME/usr/vid
9+
10+cd $DIR
11+
12+switch($1) {
13+case -d
14+ rm -rf `{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
15+case *
16+ mpv `{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Play:'}
17+}