I have a custom script and I want to send a desktop notification (the one that appears in the top right corner of the screen) with a custom message. How do I do that?
I have a custom script and I want to send a desktop notification (the one that appears in the top right corner of the screen) with a custom message. How do I do that?
There are a bunch of other cool features with
notify-send
We can run a command and make it display in the notification:
We can use icons with the notifications
Really annoying pop up
and
For more options check here
Just to add to the other answers, when running the command locally from cron, I use
I stumbled upon that one by chance. Answer: use the program
notify-send
:I created a simple and almost-native script that plays Sound and displays a Notification with a Given Message and Time for Ubuntu (Gist):
How To Use?
First Run - Setting Up:
Create a new Directory at your home and call it
noti
Download noti.sh and extract it to the above
noti
dir.Open Terminal and Change Directory to
noti
Make noti.sh executable by issuing:
Run a Test like this:
Examples
For Notifying The Finish of Process (example)
There is also zenity - universal linux alternative to
notify-send
.