diff options
author | tdro <tdro@users.noreply.github.com> | 2020-01-15 02:38:38 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-01-15 02:38:38 -0500 |
commit | 7a38ae3791b12568b7eacd99b0b71e71a4306936 (patch) | |
tree | 47b1e76edec407ff262b7474d4eaf13b3f7fc58f /.config/systemd | |
parent | 7251092700711865ba956802e1c2b8ae93428673 (diff) | |
download | dotfiles-7a38ae3791b12568b7eacd99b0b71e71a4306936.tar.gz dotfiles-7a38ae3791b12568b7eacd99b0b71e71a4306936.tar.bz2 dotfiles-7a38ae3791b12568b7eacd99b0b71e71a4306936.zip |
config/systemd/user: Add pacman notify service
Diffstat (limited to '.config/systemd')
-rw-r--r-- | .config/systemd/user/pacman-notify.service | 7 | ||||
-rw-r--r-- | .config/systemd/user/pacman-notify.timer | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.config/systemd/user/pacman-notify.service b/.config/systemd/user/pacman-notify.service new file mode 100644 index 0000000..4cd2f10 --- /dev/null +++ b/.config/systemd/user/pacman-notify.service @@ -0,0 +1,7 @@ +[Unit] +Description=Pacman update notifications + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=/bin/sh -c 'notify-send "$(checkupdates)" || exit 0' diff --git a/.config/systemd/user/pacman-notify.timer b/.config/systemd/user/pacman-notify.timer new file mode 100644 index 0000000..055cc3d --- /dev/null +++ b/.config/systemd/user/pacman-notify.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Pacman update notifications + +[Timer] +OnBootSec=2h +OnUnitActiveSec=5h +RandomizedDelaySec=1h + +[Install] +WantedBy=default.target |