Add crontab

This commit is contained in:
lumenkeyes 2026-07-09 18:33:46 +01:00
parent 8193dbcc98
commit 6f9bcf8920
1 changed files with 22 additions and 0 deletions

22
crontab Normal file
View File

@ -0,0 +1,22 @@
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
#===========================================================================================
# Auto Logout
#===========================================================================================
25 13 * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send "Logout Warning" "5 Minutes remaining!"
29 13 * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send -u critical "Logout Warning" "1 Minute remaining!"
# https://github.com/swaywm/sway/issues/1136
30 13 * * * SWAYSOCK=/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock swaymsg exit
#===========================================================================================