almost did infinite recursive
This commit is contained in:
parent
080834aa77
commit
9362539bb5
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,6 @@ cpu() {
|
|||
battery() {
|
||||
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||
get_status="$(cat /sys/class/power_supply/BAT1/status)"
|
||||
sent_notification=false
|
||||
case "$get_status" in
|
||||
Charging) printf "^c$blue^ $get_capacity" ;;
|
||||
Discharging) if (( $get_capacity <= 20)); then
|
||||
|
@ -29,6 +28,7 @@ battery() {
|
|||
fi
|
||||
else
|
||||
printf "^c$blue^ $get_capacity"
|
||||
sent_notification=false
|
||||
fi ;;
|
||||
esac
|
||||
#printf "^c$blue^ $get_capacity"
|
||||
|
|
Loading…
Reference in a new issue