ubuntu自定义通知

ubuntu下添加自定义通知

在crontab中添加以下内容,会在指定时间弹出提醒

第一句:每周四下午5点,每10分钟提示一次;

第二句:每天,每2个小时提示一次;

第三句:每周五下午5点,每10分钟提示一次;


# */10 17 * * 4 export DISPLAY=:0.0 && notify-send -i /usr/share/icons/Humanity/emblems/48/emblem-ohno.svg 亲,该提交测试进度报告了啊!
0 */2 * * * export DISPLAY=:0.0 && notify-send -i /usr/share/icons/Humanity/emblems/48/emblem-OK.svg 亲,每两个小时让自己的眼睛休息一会儿!
*/10 17 * * 5 export DISPLAY=:0.0 && notify-send -i /usr/share/icons/Humanity/emblems/48/emblem-ohno.svg 呃...不会又忘了写周报和工时吧?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章