You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
364 B
11 lines
364 B
#!/bin/bash
|
|
# notify when mpd music changed
|
|
while "true"; do
|
|
status="`mpc status`"
|
|
if [[ ${status} == *"[playing]"* ]]; then
|
|
dunstify -a Music --replace=27072 -t 2000 -i "$HOME/media/pics/music.png" "Now Playing:" "Artist: $(mpc --format '%artist%' current)\nSong: $(mpc --format '%title%' current)"
|
|
fi
|
|
mpc current --wait > /dev/null
|
|
done
|
|
|