From 84fb1be64cf47f7867d1163ec396af84cf8471b8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 18 Oct 2023 19:58:45 +0100 Subject: (Scripts|SystemD)+mail fetch script and a SystemDservice/timer for it Syncs every 3 hours. Produces a notify-send message on fetching. --- SystemD/.config/systemd/user/mail.service | 6 ++++++ SystemD/.config/systemd/user/mail.timer | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 SystemD/.config/systemd/user/mail.service create mode 100644 SystemD/.config/systemd/user/mail.timer (limited to 'SystemD/.config') diff --git a/SystemD/.config/systemd/user/mail.service b/SystemD/.config/systemd/user/mail.service new file mode 100644 index 0000000..16d87c5 --- /dev/null +++ b/SystemD/.config/systemd/user/mail.service @@ -0,0 +1,6 @@ +[Unit] +Description=Syncing mail using mbsyncrc + +[Service] +Type=simple +ExecStart=%h/.local/scripts/mail_fetch diff --git a/SystemD/.config/systemd/user/mail.timer b/SystemD/.config/systemd/user/mail.timer new file mode 100644 index 0000000..0d1b970 --- /dev/null +++ b/SystemD/.config/systemd/user/mail.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run mail sync every 3 hours + +[Timer] +OnBootSec=1min +OnUnitActiveSec=10800 +Unit=mail.service + +[Install] +WantedBy=timers.target -- cgit v1.2.3-13-gbd6f