systemd user directory for timers

This commit is contained in:
2024-05-07 16:51:48 +02:00
parent f0b087dcdf
commit 7caf734bf4
5 changed files with 30 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
liberapay: marcpartensky
patreon: marcpartensky
github: marcpartensky
custom:
# - monero:43J2XmRtjDPRLD35UsYGH2AZamFBQz7dt4VdvZXVm3SuadTrvcoXUXBRUNHqukFte23Q5TWXqhbwaLJJgoVQzzbe2AJDANQ
- https://paypal.me/marcpartensky
- https://buymeacoffee.com/marcpartensky
@@ -0,0 +1,5 @@
[Unit]
Description=Notify when the battery is low and the computer is discharching.
[Service]
ExecStart=brightnessctl s 1%
@@ -0,0 +1,5 @@
[Unit]
Description=Notify when the ram is low and the computer is overloading.
[Service]
ExecStart=sh -c ~/.local/bin/lowram
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=Notify when the battery is low and the computer is discharging.
[Timer]
OnCalendar=*-*-* *:*:*
[Install]
WantedBy=timers.target
[Service]
# WorkingDirectory=/path/to/script
ExecStart=sh -c ~/.local/bin/lowram