# 向桌面发送通知 notify-send [title] [message]
# 在 crontab 中需要前面加 export DISPLAY=:0.0 export DISPLAY=:0.0 && notify-send -t 3 'Stay Sober' 'Awake & Alive'
* * * * * export DISPLAY=:0.0 && export XAUTHORITY=/home/ravi/.Xauthority && sudo -u ravi /usr/bin/notify-send Hey "How are you"
|