From 591082b93262c9674bad9fafb856d92ad0933fd0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 28 Aug 2023 00:57:43 +0300 Subject: systemd: Add a timer for ‘qotd’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/systemd/user/qotd.service | 9 +++++++++ .config/systemd/user/qotd.timer | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 .config/systemd/user/qotd.service create mode 100644 .config/systemd/user/qotd.timer (limited to '.config') 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 -- cgit v1.2.3