From 7bd3e52d71fdc391a08f97e1988f55061937a9ff Mon Sep 17 00:00:00 2001 From: Luca Bilke <luca@gmail.com> Date: Mon, 13 Mar 2023 01:42:23 +0100 Subject: [PATCH] fix player icon with bash as default shell --- .local/bin/statusbar/sb-playerctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-playerctl b/.local/bin/statusbar/sb-playerctl index 0e4d7c89..48bd39de 100755 --- a/.local/bin/statusbar/sb-playerctl +++ b/.local/bin/statusbar/sb-playerctl @@ -4,10 +4,10 @@ big="\033[11m" reset="\033[10m" pidof -x sbd-playerctl >/dev/null 2>&1 || sbd-playerctl >/dev/null 2>&1 & -[ "$(playerctl status 2>&1)" = "No players found" ] && echo "$bigﱙ$reset" && exit 1 +[ "$(playerctl status 2>&1)" = "No players found" ] && echo -e "$bigﱙ$reset" && exit 1 # song="$(playerctl metadata xesam:artist) - $(playerctl metadata xesam:title)" song="$(playerctl metadata xesam:title) - $(playerctl metadata xesam:artist)" [ ${#song} -gt 35 ] && song="$(printf %.35s "$song")…" -icon="$big$(playerctl status | sed "s/Playing//;s/Paused//;")$reset" -echo "$icon $song" +icon="$(playerctl status | sed "s/Playing//;s/Paused//;")" +echo -e "$big$icon$reset $song"