shell/+mpd: fix literal \n in notification

This commit is contained in:
Henrik Lissner 2017-09-05 19:09:31 +02:00
parent 3157e52499
commit 0173319add
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -55,7 +55,7 @@ case $OSTYPE in
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<br />"
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