I've added the (f)cronjob
*/1 * * * * DISPLAY=:0 notify-send testing
to display a notification every minute, but it doesn't work; why not? (Using i3.)
I've added the (f)cronjob
*/1 * * * * DISPLAY=:0 notify-send testing
to display a notification every minute, but it doesn't work; why not? (Using i3.)
It doesn't work as a cronjob because crontab runs in background. You need to set the variable for it, like this:
*/1 * * * * <user> export DISPLAY=:0 && notify-send 'testing'