blob: 81ff397ecc8cacf46300ba758c57f741e5bd0444 (
plain)
1
2
3
4
5
6
7
8
9
10
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 ] && ! [ -d "$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
|