From 35609bca5d6e1554b1568fcc68996899b233ecfb Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 17 Mar 2019 17:08:42 +0100 Subject: [PATCH] update pacman cache in background --- .../.config/systemd/user/update-pacman-cache.service | 8 ++++++++ slstatus/.config/systemd/user/update-pacman-cache.timer | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 slstatus/.config/systemd/user/update-pacman-cache.service create mode 100644 slstatus/.config/systemd/user/update-pacman-cache.timer diff --git a/slstatus/.config/systemd/user/update-pacman-cache.service b/slstatus/.config/systemd/user/update-pacman-cache.service new file mode 100644 index 0000000..774ce0a --- /dev/null +++ b/slstatus/.config/systemd/user/update-pacman-cache.service @@ -0,0 +1,8 @@ +[Unit] +Description=Update Pacman Cache + +[Service] +ExecStart=yay -Sy + +[Install] +WantedBy=default.target diff --git a/slstatus/.config/systemd/user/update-pacman-cache.timer b/slstatus/.config/systemd/user/update-pacman-cache.timer new file mode 100644 index 0000000..ef60728 --- /dev/null +++ b/slstatus/.config/systemd/user/update-pacman-cache.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run update-pacman-cache every 15m + +[Timer] +OnBootSec=300m +OnUnitActiveSec=15m + +[Install] +WantedBy=timers.target