From bb83945623fa6cef6c195c98a7776f45974c006c Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 17 Oct 2021 15:39:52 -0700 Subject: move work-tree to /, delete mods files, addd cfgL --- home/xyz/.local/bin/mpva | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home/xyz/.local/bin/mpva (limited to 'home/xyz/.local/bin/mpva') 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 -- cgit v1.2.3-70-g09d2