Change charging battery symbol and color

This commit is contained in:
Luc Didry 2012-08-13 10:02:10 +02:00
parent 9a33acef08
commit a11b838116

View File

@ -667,6 +667,7 @@ __battery()
__battery_color() __battery_color()
{ {
local mark="⌁" local mark="⌁"
local chargingmark="⏚"
local bat local bat
local ret local ret
bat=$(__battery) bat=$(__battery)
@ -677,18 +678,18 @@ __battery_color()
return return
elif [[ $ret == 3 && $bat != 100 ]] ; then elif [[ $ret == 3 && $bat != 100 ]] ; then
# charging and above threshold and not 100% # charging and above threshold and not 100%
# green # green
echo -ne "${GREEN}$mark${NO_COL}" echo -ne "${GREEN}$chargingmark${NO_COL}"
return return
elif [[ $ret == 2 ]] ; then elif [[ $ret == 2 ]] ; then
# charging but under threshold # charging but under threshold
# yellow # yellow
echo -ne "${YELLOW}$mark${NO_COL}" echo -ne "${YELLOW}$chargingmark${NO_COL}"
return return
elif [[ $ret == 1 ]] ; then elif [[ $ret == 1 ]] ; then
# discharging but above threshold # discharging but above threshold
# red # yellow
echo -ne "${RED}$mark${NO_COL}" echo -ne "${YELLOW}$mark${NO_COL}"
return return
# discharging and under threshold # discharging and under threshold