New icons for sb-battery.

This commit is contained in:
Bartek Stalewski 2022-04-01 00:35:40 +02:00
parent e393b71c8b
commit 9903d67ca6

View File

@ -5,11 +5,11 @@ for battery in /sys/class/power_supply/BAT?*; do
[ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity
case "$(cat "$battery/status")" in
"Full") status="\uea0b" ;;
"Full") status="\ue1a3" ;;
"Discharging") status="\ue1a5" ;;
"Charging") status="\ue63c" ;;
"Not charging") status="\ue1a6" ;;
"Unknown") status="\ue1a3" ;;
"Not charging") status="\ue1a3" ;;
"Unknown") status="\ue1a6" ;;
esac
capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low