almost did infinite recursive

This commit is contained in:
Sakooooo 2023-08-04 23:19:54 +03:00
parent 080834aa77
commit 9362539bb5
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -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"