From 363e577ea0fd5be7c3032f9a99549b643400462c Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 5 Aug 2023 00:06:28 +0300 Subject: [PATCH] should work now --- 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 eb0aa74f..19d0798f 100755 --- a/config/dwm/scripts/bar.sh +++ b/config/dwm/scripts/bar.sh @@ -22,7 +22,7 @@ battery() { Charging) printf "^c$blue^ 󰂄 $get_capacity" ;; Discharging) if (( $get_capacity <= 20)); then printf "^c$lightred^ 󰂃 $get_capacity" - if [ $sent_notification = false ]; then + if [ [$sent_notification = false] ]; then sudo -u sako \ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \ dunstify -u critical "Battery low" "Please charge battery"