shell/mpd/bin/notify-song.sh: don't block
This commit is contained in:
parent
c34880ccec
commit
e372294911
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue