This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/apps/udev-rules/lowbat

3 lines
178 B
Plaintext
Raw Normal View History

2020-01-16 13:28:23 -06:00
# Suspend the system when battery level drops to 3% or lower
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"