From ffc2f0cf5fa5a9f47694d48017e1bcadfdb68a45 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Tue, 28 Apr 2020 18:36:35 -0400
Subject: hibernate on low battery udev
---
src/etc/udev/rules.d/99-lowbat.rules | 1 +
1 file changed, 1 insertion(+)
create mode 100644 src/etc/udev/rules.d/99-lowbat.rules
(limited to 'src/etc/udev/rules.d/99-lowbat.rules')
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"
--
cgit