commit aaecbd0c1970197f0697a2736e3c28361db9b166 parent f5c3c663fd9aeac41f51b4d38b0bf0858f59fc4e Author: dwrz <dwrz@dwrz.net> Date: Tue, 31 Oct 2023 19:58:50 +0000 Add power systemd service and timer Diffstat:
A | systemd/user/power.service | | | 11 | +++++++++++ |
A | systemd/user/power.timer | | | 13 | +++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/systemd/user/power.service b/systemd/user/power.service @@ -0,0 +1,11 @@ +[Unit] +Description=Report low battery status +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/check_battery + +[Install] +WantedBy=timers.target diff --git a/systemd/user/power.timer b/systemd/user/power.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Report low battery status +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Persistent=false +OnBootSec=30sec +OnUnitActiveSec=5min +Unit=power.service + +[Install] +WantedBy=default.target