summaryrefslogtreecommitdiff
path: root/.local/bin/mpva
blob: 7224cf46b870b3cfbf250244c6ff2b5e0e0093eb (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 ]; 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