开发者

Linux: set custom alert/toast/not sure of name

Sorry for the wording, I'm referring to the toast (that's how Android calls them) that appears on the top right of the screen when ce开发者_StackOverflowrtain events happens.

Examples: a torrent is done (Transmission) or a new song is playing (Banshee)

Does anyone know how to define one inside a script or a program?

Thank you


What you're looking for is libnotify which also has a command line client called notify-send that can be used like this:

notify-send <summary> <body>


Howabout zenity - installed in gnome by default. as always, man zenity for more information

zenity --info --text "message her..."


If you're using Gnome, you probably want: http://developer.gnome.org/libnotify/

I believe that most of the other desktops will respect notifications sent using libnotify, but have to admit to not having tried it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜