Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 certain 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

like image 752
soBinary Avatar asked Sep 06 '25 00:09

soBinary


2 Answers

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>
like image 128
TomH Avatar answered Sep 07 '25 23:09

TomH


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

zenity --info --text "message her..."
like image 45
Fredrik Pihl Avatar answered Sep 08 '25 00:09

Fredrik Pihl