summaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-28 00:57:43 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-28 00:57:43 +0300
commit591082b93262c9674bad9fafb856d92ad0933fd0 (patch)
tree1a4c6d0ef2053d5b157446b5fa64a06bec6d6458 /.config/systemd
parent87a3773df52e73f755772f2cb109734e9c2158c9 (diff)
systemd: Add a timer for ‘qotd’
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/qotd.service9
-rw-r--r--.config/systemd/user/qotd.timer9
2 files changed, 18 insertions, 0 deletions
diff --git a/.config/systemd/user/qotd.service b/.config/systemd/user/qotd.service
new file mode 100644
index 0000000..6c858e5
--- /dev/null
+++ b/.config/systemd/user/qotd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Generate a quote of the day
+
+[Service]
+Type=oneshot
+ExecStart=/home/thomas/.local/bin/qotd
+
+[Install]
+WantedBy=default.target
diff --git a/.config/systemd/user/qotd.timer b/.config/systemd/user/qotd.timer
new file mode 100644
index 0000000..d8edd72
--- /dev/null
+++ b/.config/systemd/user/qotd.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Generate a quote of the day
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+
+[Install]
+WantedBy=timers.target