commit 106e9d5
hovercats
·
2022-01-26 09:50:37 +0000 UTC
parent ab54da4
dmpv: set directory as a variable + fix typo
1 files changed,
+5,
-2
M
dmpv
M
dmpv
+5,
-2
1@@ -1,11 +1,14 @@
2 #!/bin/sh -e
3
4-# A tiny script for launcing videos inside Videos dir with mpv
5+# A tiny script for launching videos inside Videos dir with mpv
6 # No more need for a detached terminal taking up your screen space
7
8 # Can use fzf instead, and probably rofi, bemenu etc aswell
9 LAUNCHER="dmenu -i -l 50"
10
11-cd "$HOME"/Videos
12+# set DIR variable to whatever floats your boat
13+DIR="$HOME"/Videos
14+
15+cd "$DIR"
16
17 mpv "$(stest -- * | awk -F "/" '{print $NF}' | $LAUNCHER)"