1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

statusbar: made hardware icons stick together

This commit is contained in:
tiyn 2024-03-11 00:26:11 +01:00
parent a165c62469
commit 50451fe26e
3 changed files with 9 additions and 9 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"