From 9293df67bf5f86a300489b2382a780c22af79d5f Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 25 Jan 2023 12:49:18 +0100 Subject: [PATCH] Add gh-notify as systemd timer on wm-ready --- home/.config/systemd/user/gh-notification.service | 13 +++++++++++++ home/.config/systemd/user/gh-notification.timer | 9 +++++++++ .../wm-ready.target.wants/gh-notification.timer | 1 + 3 files changed, 23 insertions(+) create mode 100644 home/.config/systemd/user/gh-notification.service create mode 100644 home/.config/systemd/user/gh-notification.timer create mode 120000 home/.config/systemd/user/wm-ready.target.wants/gh-notification.timer diff --git a/home/.config/systemd/user/gh-notification.service b/home/.config/systemd/user/gh-notification.service new file mode 100644 index 0000000..138d6c9 --- /dev/null +++ b/home/.config/systemd/user/gh-notification.service @@ -0,0 +1,13 @@ +[Unit] +Description="Show unread GitHub notifications" +PartOf=graphical-session.target + +[Service] +ExecStart=%h/.local/bin/scripts/gui/gh-notification -nd -v +Type=oneshot +RemainAfterExit=false +Restart=on-failure +RestartSec=3s + +[Install] +WantedBy=wm-ready.target diff --git a/home/.config/systemd/user/gh-notification.timer b/home/.config/systemd/user/gh-notification.timer new file mode 100644 index 0000000..b7e8ff4 --- /dev/null +++ b/home/.config/systemd/user/gh-notification.timer @@ -0,0 +1,9 @@ +[Unit] +Description="Timer for GitHub notification sendout" +PartOf=graphical-session.target + +[Timer] +OnUnitActiveSec=1m + +[Install] +WantedBy=wm-ready.target diff --git a/home/.config/systemd/user/wm-ready.target.wants/gh-notification.timer b/home/.config/systemd/user/wm-ready.target.wants/gh-notification.timer new file mode 120000 index 0000000..d39d60c --- /dev/null +++ b/home/.config/systemd/user/wm-ready.target.wants/gh-notification.timer @@ -0,0 +1 @@ +/home/itsdrike/.config/systemd/user/gh-notification.timer \ No newline at end of file