aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/etc/udev/rules.d/99-lowbat.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/99-lowbat.rules b/src/etc/udev/rules.d/99-lowbat.rules
new file mode 100644
index 0000000..7c4c86e
--- /dev/null
+++ b/src/etc/udev/rules.d/99-lowbat.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-1]", RUN+="/usr/bin/systemctl hibernate"