From d109f901fcc788c26f530d2784e2609dd3cc3509 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Jan 2017 23:23:01 -0500 Subject: [PATCH] shell/mpd/bin/notify-song.sh: enable colored rating text in linux --- shell/mpd/bin/notify-song.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/mpd/bin/notify-song.sh b/shell/mpd/bin/notify-song.sh index 36036dd4..088fc9ce 100755 --- a/shell/mpd/bin/notify-song.sh +++ b/shell/mpd/bin/notify-song.sh @@ -34,6 +34,10 @@ if [[ $stars ]]; then if [[ $starn ]]; then star_filled_icon="★" star_empty_icon="☆" + if [[ $OSTYPE == linux* ]]; then + star_filled_icon="${star_filled_icon}" + star_empty_icon="${star_empty_icon}" + fi for ((i=1;i<=5;i++)); do if (( "$starn" >= "$i" )); then