summaryrefslogtreecommitdiff
path: root/suspend-below-battery-capacity.service
diff options
context:
space:
mode:
Diffstat (limited to 'suspend-below-battery-capacity.service')
-rw-r--r--suspend-below-battery-capacity.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/suspend-below-battery-capacity.service b/suspend-below-battery-capacity.service
new file mode 100644
index 0000000..bd42596
--- /dev/null
+++ b/suspend-below-battery-capacity.service
@@ -0,0 +1,9 @@
1[Unit]
2Description = Suspend machine when battery capacity drops below threshhold
3
4[Service]
5ExecStart = suspend-below-battery-capacity 50
6Restart = on-failure
7
8[Install]
9WantedBy = default.target