Use correct battery level
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user