From 1f36083340c2c74a6cbc47c7e41c42eaf7c3ee5e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 7 Oct 2017 17:33:26 +0200 Subject: [PATCH] Color stars in mpd-rate for clarity --- shell/+mpd/bin/mpd-rate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/+mpd/bin/mpd-rate b/shell/+mpd/bin/mpd-rate index 8184055a..dd4d16a1 100755 --- a/shell/+mpd/bin/mpd-rate +++ b/shell/+mpd/bin/mpd-rate @@ -37,8 +37,8 @@ _clear_playlists() { _display_stars() { # Display new rating stars="" - star_filled_icon="★" - star_empty_icon="☆" + star_filled_icon='\033[0;32m*\033[0m' + star_empty_icon='\033[0;30m*\033[0m' for ((i=1;i<=5;i++)); do if (( "$1" >= "$i" )); then stars="${stars}${star_filled_icon}" @@ -46,7 +46,7 @@ _display_stars() { stars="${stars}${star_empty_icon}" fi done - echo "$stars" + printf "$stars\n" }