2020-06-02 13:36:06 +02:00

12 lines
204 B
Bash
Executable File

#!/bin/sh
# Add random song to mpd queue.
song="$(mpc listall | shuf -r -n 1)"
mpc add "$song"
notify-send -u normal "MPD added random song" "$(
mpc -f "%artist% - %title%" find filename "$song"
)"