From 9362539bb5cdd2ee88657b63eca305fb4a999614 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 4 Aug 2023 23:19:54 +0300 Subject: [PATCH] almost did infinite recursive --- config/dwm/scripts/bar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/dwm/scripts/bar.sh b/config/dwm/scripts/bar.sh index abadd15f..aeef35d0 100755 --- a/config/dwm/scripts/bar.sh +++ b/config/dwm/scripts/bar.sh @@ -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"