update batt script
This commit is contained in:
parent
dde08d8de1
commit
45e85d932a
|
@ -23,6 +23,16 @@ else
|
||||||
icon=""
|
icon=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chrg=$(cat /sys/class/power_supply/$DEVICE/status)
|
||||||
|
|
||||||
|
if [[ "$chrg" == "Charging" ]]
|
||||||
|
then
|
||||||
|
icon=""
|
||||||
|
elif [[ "$chrg" == "Full" ]]
|
||||||
|
then
|
||||||
|
icon=""
|
||||||
|
fi
|
||||||
|
|
||||||
batpercent="$(echo $batpercent)%"
|
batpercent="$(echo $batpercent)%"
|
||||||
|
|
||||||
echo "^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $batpercent ^d^"
|
echo "^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $batpercent ^d^"
|
||||||
|
|
Loading…
Reference in New Issue