statusbar: made hardware icons stick together

master
tiyn 10 months ago
parent a165c62469
commit 50451fe26e

@ -12,12 +12,12 @@ temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
if [ $temp -gt 100 ]
then
icon="^b#282828^^c#ff0000^  ^d^"
icon="^b#282828^^c#ff0000^ "
elif [ $temp -gt 80 ]
then
icon="^b#282828^^c#ffff00^  ^d^"
icon="^b#282828^^c#ffff00^ "
else
icon="^b#282828^^c#dfdfdf^  ^d^"
icon="^b#282828^^c#dfdfdf^ "
fi
echo "$icon"

@ -14,12 +14,12 @@ fi
if [ $temp -gt 100 ]
then
icon="^b#282828^^c#ff0000^  ^d^"
icon="^b#282828^^c#ff0000^ "
elif [ $temp -gt 80 ]
then
icon="^b#282828^^c#ffff00^  ^d^"
icon="^b#282828^^c#ffff00^ "
else
icon="^b#282828^^c#dfdfdf^  ^d^"
icon="^b#282828^^c#dfdfdf^ "
fi
echo "$icon"

@ -6,12 +6,12 @@ percent=$(printf %3s $(printf %-4s $total | tr ' ' '0' | cut -c1-4 | sed -e 's/\
if [ $percent -gt 75 ]
then
icon="^b#282828^^c#ff0000^  ^d^"
icon="^b#282828^^c#ff0000^ "
elif [ $percent -gt 50 ]
then
icon="^b#282828^^c#ffff00^  ^d^"
icon="^b#282828^^c#ffff00^ "
else
icon="^b#282828^^c#dfdfdf^  ^d^"
icon="^b#282828^^c#dfdfdf^ "
fi
echo "$icon"

Loading…
Cancel
Save