自己写的脚本能否向系统发送通知?
Tofloor
poster avatar
189******23
deepin
2018-11-29 03:50
Author
就是发送成右上角弹出的那种通知。。。
求方法。
Reply Favorite View the author
All Replies
avatar
qq1015576210
deepin
2018-11-30 05:14
#1
更多内容在终端输入yelp 点击Zenity 手册
#!/bin/sh
zenity --notification\
    --window-icon="info" \
    --text="There are system updates necessary!"
Reply View the author
avatar
ylxdxx
deepin
2018-11-30 05:58
#2
https://bbs.deepin.org/post/171682
更多内容在终端输入yelp 点击Zenity 手册
#!/bin/sh
zenity --notification\

还有这种帮助文档,长见识了
Reply View the author
avatar
189******23
deepin
2018-11-30 06:40
#3
https://bbs.deepin.org/post/171682
更多内容在终端输入yelp 点击Zenity 手册
#!/bin/sh
zenity --notification\

感谢感谢!
Reply View the author
avatar
itux
deepin
2018-11-30 15:22
#4
yad比zenity更有趣,只是它默认情况下未安装。
Reply View the author
avatar
justforlxz
deepin
2018-11-30 16:59
#5
普通的话,使用notify-send就可以了
Reply View the author
Comments
sonichy
2018-12-02 17:30
好的好的,马上加入我的开机换壁纸!
avatar
189******23
deepin
2018-11-30 18:21
#6
https://bbs.deepin.org/post/171682
普通的话,使用notify-send就可以了

zentiy还可以实现一个简易的对话框获取返回值。。。
我本来是给我的低电量自动休眠脚本加个通知来着。。。
这样一来还可以跳个确认窗口,yes or no,超时自动休眠啥的。。
Reply View the author