summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-08-28 19:10:25 -0700
committerxyz <gky44px1999@gmail.com>2021-08-28 19:10:25 -0700
commitf31301016e3a3b92fdf1536897c1e23f0b886155 (patch)
tree961e73b9d41a69072adc1e8ee88da36e2d2b2af9 /.local
parent92518dd6c72ac82e4f1380d70dc25681ee256b7d (diff)
comment
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/mpvm1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/mpvm b/.local/bin/mpvm
index 3dbfb194..254d5826 100755
--- a/.local/bin/mpvm
+++ b/.local/bin/mpvm
@@ -2,6 +2,7 @@
if [ $# -eq 0 ]; then
# fzf has --read0, maybe useful
+ # may further improve it by consider fzf select only one file
find "$XDG_MUSIC_DIR" | fzf -m --print0 | xargs -0 mpv --shuffle --loop-playlist=inf --video=no
elif [ $# -eq 1 ]; then
# use --loop-file for single file, better performance maybe