aboutsummaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/99-lowbat.rules
blob: c5a9b769ec282343c995c74c014c5a1933c8eeda (plain)
1
2
3
4
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-1]", RUN+="/usr/bin/systemctl hybrid-sleep"

SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/local/bin/bat-led-set 1"
SUBSYSTEM=="power_supply", ATTR{status}=="Charging", RUN+="/usr/local/bin/bat-led-set 0"