Simple pop-up notifications
posted Sep 3rd 2009 3:24pm by Mike Szczysfiled under: linux hacks

[Kristofer] shares a tip on a simple way to add pop-up notifications to Linux scripts. The package libnotify allows you to use the command “notify-send” to pop up a message when you need it. The syntax is simple enough, just place your message in quotes after the command like so:
notify-send "Go read hackaday.com"
There are a lot of other options that go along with this command such as adding an icon and setting how long the message will be displayed. This would be great for projects that interface through scripts, displaying messages as events happen. For Ubuntu, installing this package was as simple as “sudo apt-get install libnotify-bin”.








How is this a hack? This is a simple command line utility that has been around for years doing exactly what it was meant to do.
This is the GUI version of “print ” for linux.