Set crontab env more conveniently.

This commit is contained in:
Jarno Rantanen 2018-08-12 12:55:22 +03:00
parent 0fd3a2a04b
commit 94f8e933e0

View File

@ -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