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