add better battery script
This commit is contained in:
parent
cb505bb4e1
commit
1329c53570
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue