summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-08-29 14:42:37 -0700
committerxyz <gky44px1999@gmail.com>2021-08-29 14:42:37 -0700
commita04274e018f1c724fab3db6a2aaa0b50729e8bbd (patch)
tree196c4342688e88356a97669711bbba5a7241937e /.local
parent2f950ab04fbac5879b0e29c87bf47d07672e31f5 (diff)
mpvm, rename to mpva, use --af= which disable my rubberband config
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/mpva12
-rwxr-xr-x.local/bin/mpvm12
2 files changed, 12 insertions, 12 deletions
diff --git a/.local/bin/mpva b/.local/bin/mpva
new file mode 100755
index 00000000..0c775a50
--- /dev/null
+++ b/.local/bin/mpva
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]; then
+ # fzf has --read0, maybe useful
+ # may further improve it by consider fzf select only one file, seems hard without bashism array
+ 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
diff --git a/.local/bin/mpvm b/.local/bin/mpvm
deleted file mode 100755
index 254d5826..00000000
--- a/.local/bin/mpvm
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-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
- mpv --loop-file=inf --video=no "$1"
-else
- mpv --shuffle --loop-playlist=inf --video=no "$@"
-fi