diff options
Diffstat (limited to 'mpdnotify')
-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" |