aboutsummaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorkrolyxon <krolyxon@tutanota.com>2026-01-16 23:56:38 +0530
committerkrolyxon <krolyxon@tutanota.com>2026-01-16 23:56:38 +0530
commit85a49d2edd6ceda704a6cdc084e2459174fcda36 (patch)
treee353142aa4b5fb2dd55964a52a780e5de456e9ee /systemd
initial commit
Diffstat (limited to 'systemd')
-rw-r--r--systemd/power-watch.service7
-rw-r--r--systemd/power-watch.timer10
2 files changed, 17 insertions, 0 deletions
diff --git a/systemd/power-watch.service b/systemd/power-watch.service
new file mode 100644
index 0000000..ef503cd
--- /dev/null
+++ b/systemd/power-watch.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Power Watch Telegram Notifier
+
+[Service]
+Type=oneshot
+ExecStart=%h/.local/bin/power-watch.sh
+Environment=PATH=/usr/bin:/bin
diff --git a/systemd/power-watch.timer b/systemd/power-watch.timer
new file mode 100644
index 0000000..852e0ca
--- /dev/null
+++ b/systemd/power-watch.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run Power Watch every minute
+
+[Timer]
+OnBootSec=30
+OnUnitActiveSec=60
+AccuracySec=5s
+
+[Install]
+WantedBy=timers.target