# Important Note
These cronjobs have components that require information about your current display to display notifications correctly.
When you add them as cronjobs, I recommend you precede the command with commands as those below:

```
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile;  then_command_goes_here
```

This ensures that notifications will display, xdotool commands will function and environmental variables will work as well.

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (homeday=0 or 7) OR home,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

18   7  * * *   house    ${HOME}/.local/bin/ansible 'all:!off' -m setup -a 'gather_subset=min' >/dev/null 2>&1
7    5  * * *   house    /usr/bin/recollindex >/dev/null 2>&1

*/10 *  * * *   house    find ${HOME}/.vdirsyncer/work/ -type f -name "* (2).ics" -delete && vdirsyncer sync work >/dev/null 2>&1 && ${HOME}/.todo/opt/remind/khal2rem.el > ${HOME}/.todo/var/ical.rem 2>/dev/null
*/5  *  * * *   house    ${HOME}/.todo/opt/remind/todo2rem.sh 2>&1
12   *  * * *   house    /usr/bin/mu index --quiet &
# trash-empty older than 7 days - runs every day at 4:20 am
20 4 * * * trash-rm 7

# to delete clipboard history
*/10 * * * * house DISPLAY=:0 ${HOME}/.dotfiles/scripts/clear_clipboard.sh

#0 */12 * * * /usr/local/bin/dnscrypt-proxy-update.sh
#@reboot caddy start --config /path/to/Caddyfile

@reboot cd $HOME/screenshots && /usr/sbin/fd --changed-before 30d -x rm -rf
@reboot cd $HOME/downloads   && mkdir -p old && /usr/sbin/fd --changed-before 30d -x mv {} old
@reboot docker image prune -a -f --filter "until=480h"


MAILTO=house
SHELL=/usr/bin/zsh
PATH=${HOME}/.local/pipx/bin:${HOME}/.local/bin/dev:${HOME}/.local/bin/git:${HOME}/.local/bin/fukusu:${HOME}/.local/bin/util:${HOME}/.local/bin/linux:${HOME}/.local/bin:/usr/local/sbin:/usr/lib/cargo/bin:${HOME}/.local/share/cargo/bin:${HOME}/.local/fzf/bin:/usr/bin:/bin:/usr/games

 # */10 * * * * ${HOME}/mybin/linux/mailsync2
 # */10 * * * * /usr/bin/task sync
 # */10 * * * * ${HOME}/.local/share/pyenv/shims/bugwarrior-pull
 #    0 0 * * * ${HOME}/.config/zsh/zinit/polaris/bin/lolcate --db default --update
 #    0 1 * * * ${HOME}/.config/zsh/zinit/polaris/bin/lolcate --db git --update
 #    0 2 * * * ${HOME}/.config/zsh/zinit/polaris/bin/lolcate --db config --update
# */100 * * * * ${HOME}/.config/zsh/zinit/polaris/bin/lolcate --db projects --update

# @reboot docker image prune -a -f --filter "until=480h"
# */10 * * * * ${HOME}/mybin/linux/newscron
# 00 15 * * * DISPLAY=:0

# @reboot caddy start --config /etc/caddy/Caddyfile

@reboot cd $HOME/downloads   && mkdir -p old && /usr/sbin/fd --changed-before 30d -x mv {} old