shell/mpd/bin/notify-song.sh: enable colored rating text in linux

This commit is contained in:
Henrik Lissner 2017-01-17 23:23:01 -05:00
parent 02db41a81e
commit d109f901fc

View file

@ -34,6 +34,10 @@ if [[ $stars ]]; then
if [[ $starn ]]; then
star_filled_icon="★"
star_empty_icon="☆"
if [[ $OSTYPE == linux* ]]; then
star_filled_icon="<span fgcolor='#8fb1cd'>${star_filled_icon}</span>"
star_empty_icon="<span fgcolor='#666666'>${star_empty_icon}</span>"
fi
for ((i=1;i<=5;i++)); do
if (( "$starn" >= "$i" )); then