dotfiles/root/etc/udev/rules.d/50-powersave-suspend.rules

3 lines
156 B
Plaintext
Raw Normal View History

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