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