I'm running Lubuntu 12.04. I have a shell script that tests for a network condition and need some way for it to pop up a notification in the GUI. The network testing part is done, but I need some help with the "pop up a notification in the GUI" part.
yeah you can do that with python. open your terminal and type
Then write a program like this .
save it with any name , for example noti.py for our case .
open your terminal and type
Then you will see
Hope that helps.
Credit goes here : Create custom notification on your Ubuntu desktop using python
You can use the default notification daemon to give notifications with an icon.
Just add this line to the shell script where you want to give notification (with appropriate lines and paths).
The package providing this is
@ThatJackElliott Did you replace <> with appropriate text? You need to remove "<" ">". Icon path is optional. Try this :
In case of any problems, these are the packages in my system. They work excellently :
|show 10 more comments|