From 8dd3d3fe28a437fc976e28b3076775d6dfe6c066 Mon Sep 17 00:00:00 2001 From: lew Date: Mon, 3 Nov 2025 22:00:11 +0000 Subject: [PATCH] Add .config/systemd/user/low-battery-warn.service Add .config/systemd/user/low-battery-warn.timer Add .config/systemd/user/timers.target.wants/low-battery-warn.timer --- .../systemd/user/low-battery-warn.service | 7 +++++++ private_dot_config/systemd/user/low-battery-warn.timer | 10 ++++++++++ .../timers.target.wants/symlink_low-battery-warn.timer | 1 + 3 files changed, 18 insertions(+) create mode 100644 private_dot_config/systemd/user/low-battery-warn.service create mode 100644 private_dot_config/systemd/user/low-battery-warn.timer create mode 100644 private_dot_config/systemd/user/timers.target.wants/symlink_low-battery-warn.timer diff --git a/private_dot_config/systemd/user/low-battery-warn.service b/private_dot_config/systemd/user/low-battery-warn.service new file mode 100644 index 0000000..5e6f955 --- /dev/null +++ b/private_dot_config/systemd/user/low-battery-warn.service @@ -0,0 +1,7 @@ +[Unit] +Description=Low Battery Warning + +[Service] +Type=oneshot +ExecStart=%h/.local/bin/low-battery-warn + diff --git a/private_dot_config/systemd/user/low-battery-warn.timer b/private_dot_config/systemd/user/low-battery-warn.timer new file mode 100644 index 0000000..07a038c --- /dev/null +++ b/private_dot_config/systemd/user/low-battery-warn.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Timer for Low Battery Warning + +[Timer] +OnBootSec=2min +OnUnitActiveSec=2min +Unit=low-battery-warn.service + +[Install] +WantedBy=timers.target diff --git a/private_dot_config/systemd/user/timers.target.wants/symlink_low-battery-warn.timer b/private_dot_config/systemd/user/timers.target.wants/symlink_low-battery-warn.timer new file mode 100644 index 0000000..acb30cd --- /dev/null +++ b/private_dot_config/systemd/user/timers.target.wants/symlink_low-battery-warn.timer @@ -0,0 +1 @@ +/home/lew/.config/systemd/user/low-battery-warn.timer