From c3be6b289bc1a7b19491092941a46c4b67159056 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 5 Aug 2021 00:23:22 +0200 Subject: Fixing newsboat and qutebrowser crontabs to connect them to the X server --- crontab/root.crontab | 2 +- crontab/user.crontab | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'crontab') 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 -- cgit