mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-03 22:11:16 +01:00 
			
		
		
		
	statusbar: made hardware icons stick together
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user