diff options
author | Squibid <me@zacharyscheiman.com> | 2024-08-04 17:28:23 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-08-04 17:28:23 -0400 |
commit | fca8583269c15f74b82f166039d55f6bf053617b (patch) | |
tree | bfb8c23ad21251cad1336e99c5b17b9855369244 | |
parent | 84f3886d289dccefd965d05b4e17f245d3a309b9 (diff) | |
download | runit-services-fca8583269c15f74b82f166039d55f6bf053617b.tar.gz runit-services-fca8583269c15f74b82f166039d55f6bf053617b.tar.bz2 runit-services-fca8583269c15f74b82f166039d55f6bf053617b.zip |
-rwxr-xr-x | mpdnotify/run | 3 |
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" |