summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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