Use correct battery level

This commit is contained in:
2026-07-07 23:13:42 +01:00
parent bb6e4624db
commit 4c1158f9b7
+1 -1
View File
@@ -6,7 +6,7 @@ let
LEVEL=$(cat "$BAT/capacity") LEVEL=$(cat "$BAT/capacity")
STATUS=$(cat "$BAT/status") STATUS=$(cat "$BAT/status")
if [ "$STATUS" = "Discharging" ] && [ "$LEVEL" -lt 90 ]; then if [ "$STATUS" = "Discharging" ] && [ "$LEVEL" -lt 20 ]; then
${pkgs.dunst}/bin/dunstify \ ${pkgs.dunst}/bin/dunstify \
-r 9991 \ -r 9991 \
-t 0 \ -t 0 \