add better battery script

This commit is contained in:
Sakooooo 2023-08-04 17:05:14 +03:00
parent cb505bb4e1
commit 1329c53570
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -18,7 +18,11 @@ cpu() {
battery() {
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
get_status="$(cat /sys/class/power_supply/BAT1/status)"
printf "^c$blue^  $get_capacity"
case "$get_status" in
Charging) printf "^c$blue^ Charging $get_capacity" ;;
Discharging) printf "^c$blue^  $get_capacity" ;;
esac
#printf "^c$blue^  $get_capacity"
}
brightness() {