Add udev rule to run suspend when battery drops to 2%

This commit is contained in:
ItsDrike 2023-03-28 02:48:10 +02:00
parent 5972b65e95
commit d68ade6f62
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -0,0 +1,2 @@
# Suspend when battery is at or below 2%
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-2]", RUN+="/usr/bin/systemctl suspend"