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