mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Add udev rule to run suspend when battery drops to 2%
This commit is contained in:
parent
5972b65e95
commit
d68ade6f62
2
root/etc/udev/rules.d/50-powersave-suspend.rules
Normal file
2
root/etc/udev/rules.d/50-powersave-suspend.rules
Normal 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"
|
Loading…
Reference in a new issue