Crie o arquivo notify.sh
no diretório inicial.
#!/usr/bin/env bash
username=$(/usr/bin/whoami)
pid=$(pgrep -u $username nautilus)
dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$pid/environ | sed 's/DBUS_SESSION_BUS_ADDRESS=//' )
export DBUS_SESSION_BUS_ADDRESS=$dbus
/usr/bin/notify-send "How are you"
No crontab
:
* * * * * DISPLAY=0:0 /bin/sh /home/YOURUSERNAME/notify.sh