From 94f8e933e0cf18147d45672f730b65e395d84c52 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sun, 12 Aug 2018 12:55:22 +0300 Subject: [PATCH] Set crontab env more conveniently. --- home/crontab.example | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/crontab.example b/home/crontab.example index 277a804..3ba1fcd 100644 --- a/home/crontab.example +++ b/home/crontab.example @@ -1,3 +1,5 @@ +DISPLAY=:0.0 + # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) # │ │ ┌───────────── day of month (1 - 31) @@ -19,7 +21,7 @@ # 10 3 * * 1-5 ~/display-off.sh # Example: Reload webpage every hour -# 0 * * * * DISPLAY=:0.0 xdotool key ctrl+R +# 0 * * * * xdotool key ctrl+R # Example: Cycle between open tabs every 5 minutes -# */5 * * * * DISPLAY=:0.0 xdotool key ctrl+Tab +# */5 * * * * xdotool key ctrl+Tab