aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/cron/README.md
blob: e31429605d24d5b5c95cdbcecc2e94b18548b527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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 WAYLAND_DISPLAY=wayland-1; . $HOME/.zprofile;  then_command_goes_here
```

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

# Also important
DBUS_SESSION_BUS_ADDRESS variable will always have a random address in the /tmp directory when you are using dinit as your init system.