shell/mpd/bin/notify-song.sh: don't block

This commit is contained in:
Henrik Lissner 2017-02-28 19:04:10 -05:00
parent c34880ccec
commit e372294911

View file

@ -53,12 +53,12 @@ case $OSTYPE in
darwin*)
[[ $rating ]] && rating="[$rating] "
killall terminal-notifier
terminal-notifier -title "$rating$title" -message "by $artist :: $album" -appIcon "/Applications/iTunes.app/Contents/Resources/iTunes.icns"
terminal-notifier -title "$rating$title" -message "by $artist :: $album" -appIcon "/Applications/iTunes.app/Contents/Resources/iTunes.icns" &
;;
linux*)
[[ $rating ]] && rating="$rating\n"
notify-send --icon="media-playback-start" --app-name="ncmpcpp" "$rating$title" "${artist}\n<i>${album}</i>"
notify-send --icon="media-playback-start" --app-name="ncmpcpp" "$rating$title" "${artist}\n<i>${album}</i>" &
;;
esac >/dev/null 2>&1 &
esac >/dev/null 2>&1
exit 0
exit