summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-09-21 04:14:19 +0300
committertsxv478 <vt0451@yandex.ru>2022-09-21 04:14:19 +0300
commit5ef344a839d93a4c5c754feba6007693658d70ef (patch)
tree14d9aba4680d6207425aa20537f919725501e8f4
parentec464ea5e64998c0b55dad9b8dd77261cb580ad3 (diff)
vid script
-rwxr-xr-xvid6
1 files changed, 6 insertions, 0 deletions
diff --git a/vid b/vid
new file mode 100755
index 0000000..d9152c4
--- /dev/null
+++ b/vid
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+path="$HOME/vid"
+video=$(find $path -type f | cut -d '/' -f '5-' | dmenu -i -c -bw 3 -l 10 -p "Play video:")
+
+[ -f "$path/$video" ] && mpv --really-quiet "$path/$video"