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*)
|
darwin*)
|
||||||
[[ $rating ]] && rating="[$rating] "
|
[[ $rating ]] && rating="[$rating] "
|
||||||
killall terminal-notifier
|
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*)
|
linux*)
|
||||||
[[ $rating ]] && rating="$rating\n"
|
[[ $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