From fca8583269c15f74b82f166039d55f6bf053617b Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 4 Aug 2024 17:28:23 -0400 Subject: make the coverart actually generate before the notification is sent --- mpdnotify/run | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mpdnotify/run') 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" -- cgit v1.2.1