diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-04-28 18:36:35 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-04-28 18:36:35 -0400 |
commit | ffc2f0cf5fa5a9f47694d48017e1bcadfdb68a45 (patch) | |
tree | 423b5bfe0122f7658a8830a408b25267bcf57ccb /src | |
parent | a9fb5e23bbff897cbabc0b76409b4b170163f581 (diff) |
hibernate on low battery udev
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/udev/rules.d/99-lowbat.rules | 1 |
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" |