aboutsummaryrefslogtreecommitdiff
path: root/crontab
diff options
context:
space:
mode:
Diffstat (limited to 'crontab')
-rw-r--r--crontab/laptop.crontab3
-rw-r--r--crontab/root.crontab3
2 files changed, 5 insertions, 1 deletions
diff --git a/crontab/laptop.crontab b/crontab/laptop.crontab
new file mode 100644
index 0000000..18f36f1
--- /dev/null
+++ b/crontab/laptop.crontab
@@ -0,0 +1,3 @@
+*/10 * * * * . $HOME/.zprofile ; DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $USER)/bus" DISPLAY=:0 battery-low-notify
+
+# vim:ft=crontab
diff --git a/crontab/root.crontab b/crontab/root.crontab
index 48cb3ab..dbe87f6 100644
--- a/crontab/root.crontab
+++ b/crontab/root.crontab
@@ -1,5 +1,6 @@
# Meant to be installed as root
-0 12 */2 * * pacman --noconfirm -Syu >> /var/log/pacman_update.log
+0 12 */2 * * pacman --noconfirm -Syu
+20 12 */2 * * pacman -Qdt | xargs pacman --noconfirm -Rns
# vim:ft=crontab