aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-08-04 17:28:23 -0400
committerSquibid <me@zacharyscheiman.com>2024-08-04 17:28:23 -0400
commitfca8583269c15f74b82f166039d55f6bf053617b (patch)
treebfb8c23ad21251cad1336e99c5b17b9855369244
parent84f3886d289dccefd965d05b4e17f245d3a309b9 (diff)
downloadrunit-services-fca8583269c15f74b82f166039d55f6bf053617b.tar.gz
runit-services-fca8583269c15f74b82f166039d55f6bf053617b.tar.bz2
runit-services-fca8583269c15f74b82f166039d55f6bf053617b.zip
make the coverart actually generate before the notification is sentHEADmaster
-rwxr-xr-xmpdnotify/run3
1 files changed, 1 insertions, 2 deletions
diff --git a/mpdnotify/run b/mpdnotify/run
index 10ce9e7..24d46f5 100755
--- a/mpdnotify/run
+++ b/mpdnotify/run
@@ -12,8 +12,7 @@ while
rm -f "$coverartfile" # remove old coverart file
if [ $coverart -eq 1 ]; then
- ffmpeg -y -i "$musicdir/$(mpc -f %file% | head -1)" "$coverartfile" &
- timeout 3 inotifywait -e close "$coverartfile"
+ ffmpeg -y -i "$musicdir/$(mpc -f %file% | head -1)" "$coverartfile" &&\
notify-send -i "$coverartfile" -r $ID "Now playing" "$song"
else
notify-send -r $ID "Now playing" "$song"