2 # album - commands an existing mpv(1) to play an album from the filesystem.
3 # this command expects ASCIInumerically sorted FLACs organized
4 # in the structure $home/music/$artist/$album/$track
6 # an mpv is expected to be already listening on the socket $tmp/mpv
9 # - mpv's playlist handling is insecure
10 # - mpv is expected to have already loaded a playlist
12 # - handle dmenu(1) allowing multiple selections
17 ls=(`{9 which ls} -p -Q)
25 mpvc loadfile "$1/$f" append-play
32 album=`{ { echo '<< Back'; $ls $1 } |
33 dmenu -p 'Album:' -i -l 10 |
37 if (~ $album '<< Back')
43 artist=`{$ls $home/music |
44 dmenu -p 'Artist:' -i -l 10 |
49 get_album $home/music/$"artist