switch to this thingy

This commit is contained in:
2025-12-06 21:10:27 -08:00
parent 9adc44162f
commit 5dc71de8af

10
bin/mpd-monitor Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
mpc idleloop |
while read event; do
if [[ $event == "player" ]]; then
dunstctl close-all
TITLE=$(mpc status -f %title% | awk 'NR==1')
ARTIST=$(mpc status -f %artist% | awk 'NR==1')
notify-send "$TITLE" "$ARTIST" -i :
fi
done