find-music.sh (336B)
1 #!/bin/bash 2 3 # I have my music broken down by artist, but there is no reason 4 # why if you have it by album that this wouldn't work. 5 6 prompt="play:" 7 8 dmenu_cmd="dmenu -p \"$prompt\"" 9 10 artistDirectory=$1 11 out="$1$(ls "$artistDirectory" | eval $dmenu_cmd)" 12 13 14 15 if [[ "$out" == $1 ]]; then 16 echo "NO SELECTION" 17 else 18 mpv --shuffle "$out" 19 fi