From 6f9bcf892005873860e0d784903b37083a43017c Mon Sep 17 00:00:00 2001 From: lumenkeyes Date: Thu, 9 Jul 2026 18:33:46 +0100 Subject: [PATCH] Add crontab --- crontab | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 crontab diff --git a/crontab b/crontab new file mode 100644 index 0000000..a63d065 --- /dev/null +++ b/crontab @@ -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 +#=========================================================================================== \ No newline at end of file