aboutsummaryrefslogtreecommitdiff
path: root/crontab
diff options
context:
space:
mode:
Diffstat (limited to 'crontab')
-rw-r--r--crontab/root.crontab2
-rw-r--r--crontab/user.crontab9
2 files changed, 7 insertions, 4 deletions
diff --git a/crontab/root.crontab b/crontab/root.crontab
index ada8721..48cb3ab 100644
--- a/crontab/root.crontab
+++ b/crontab/root.crontab
@@ -1,5 +1,5 @@
# Meant to be installed as root
-* * */2 * * pacman --noconfirm -Syu >> /var/log/pacman_update.log
+0 12 */2 * * pacman --noconfirm -Syu >> /var/log/pacman_update.log
# vim:ft=crontab
diff --git a/crontab/user.crontab b/crontab/user.crontab
index 290a53d..69bee64 100644
--- a/crontab/user.crontab
+++ b/crontab/user.crontab
@@ -1,7 +1,10 @@
# . $HOME/.zprofile is to make sure the XDG_* variables are available to the jobs
-* * */1 * * . $HOME/.zprofile ; clout pull
-* * */1 * * . $HOME/.zprofile ; newsboat -x reload
-* * */15 * * . $HOME/.zprofile ; qutebrowser --nowindow :adblock-update
+# DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $USER)/bus"
+# DISPLAY=:0
+
+0 9 */1 * * . $HOME/.zprofile ; clout pull
+2 9 */1 * * . $HOME/.zprofile ; DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $USER)/bus" DISPLAY=:0 newsboat -x reload
+4 9 */15 * * . $HOME/.zprofile ; DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $USER)/bus" DISPLAY=:0 qutebrowser --nowindow :adblock-update
# vim:ft=crontab