diff --git a/dot_config/systemd/user/paru-cache.service b/dot_config/systemd/user/paru-cache.service new file mode 100644 index 0000000..92b4215 --- /dev/null +++ b/dot_config/systemd/user/paru-cache.service @@ -0,0 +1,6 @@ +[Unit] +Description=Clean paru AUR cache + +[Service] +Type=oneshot +ExecStart=/usr/bin/paru -Sc --aur --noconfirm diff --git a/dot_config/systemd/user/paru-cache.timer b/dot_config/systemd/user/paru-cache.timer new file mode 100644 index 0000000..b8f7af3 --- /dev/null +++ b/dot_config/systemd/user/paru-cache.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Clean paru AUR cache on timer + +[Timer] +OnCalendar=weekly +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/dot_config/systemd/user/timers.target.wants/symlink_paru-cache.timer b/dot_config/systemd/user/timers.target.wants/symlink_paru-cache.timer new file mode 100644 index 0000000..4f64e20 --- /dev/null +++ b/dot_config/systemd/user/timers.target.wants/symlink_paru-cache.timer @@ -0,0 +1 @@ +/home/benq/.config/systemd/user/paru-cache.timer