Better shutdown on battery low regexp

This commit is contained in:
Daniele Verducci (Slimpenguin) 2023-04-27 08:10:27 +02:00
parent 6d47db391f
commit 099fc25352

View File

@ -154,7 +154,7 @@ ALARM_STRING_EQUAL=off-line
# To cancel the shutdown, log in and "shutdown -c".
DISABLED=True
COMMAND=acpi -b
REGEXP=Battery \d: .*, (\d{1,3})%
REGEXP=REGEXP=Battery \d: Discharging, (\d{1,3})%
ALARM_VALUE_LESS_THAN=50
ALARM_COMMAND=shutdown +15 "Shutdown in 15 mins due to battery low!"