1 2 3 4 5 6 7
#!/bin/sh song=$(ls ~/music | sed 's/.mp3//' | bemenu -p "Play") [ -z "$song" ] && exit 1 mpc clear mpc add "${song}.mp3" mpc play