summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/mpva
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-10-17 15:39:52 -0700
committerxyz <gky44px1999@gmail.com>2021-10-17 15:39:52 -0700
commitbb83945623fa6cef6c195c98a7776f45974c006c (patch)
tree69ee346d3f9c7fda5bcbd17ac755625929e733af /home/xyz/.local/bin/mpva
parent965e09f7e577dfde49bd23efc5ee7449e58a674a (diff)
move work-tree to /, delete mods files, addd cfgL
Diffstat (limited to 'home/xyz/.local/bin/mpva')
-rwxr-xr-xhome/xyz/.local/bin/mpva11
1 files changed, 11 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/mpva b/home/xyz/.local/bin/mpva
new file mode 100755
index 00000000..7224cf46
--- /dev/null
+++ b/home/xyz/.local/bin/mpva
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]; then
+ # fzf has --read0, maybe useful
+ find "$XDG_MUSIC_DIR" | fzf -m --print0 | xargs -0 mpv --af= --shuffle --loop-playlist=inf --video=no
+elif [ $# -eq 1 ]; then
+ # use --loop-file for single file, better performance maybe
+ mpv --af= --loop-file=inf --video=no "$1"
+else
+ mpv --af= --shuffle --loop-playlist=inf --video=no "$@"
+fi