First of all I would like to give a big shout out to the folks who wrote libnotify. Libnotify standarized gnome notification solution, and they did a good job of it. The popup widget allows you to add buttons, images, and they look very good.
notify-send is a command line utility that makes uses libnotify to send notifications the the user.
As soon as i discouvered this I started using it to notify me when my build is finished. So:
make && notify-send DONE!
Then I got fancier and I added this to my .bashrc:
alias saydone='notify-send "Done! `if [ \$? = 0 ]; then echo \:\); else echo \:\(; fi`"'
no explanation nessesary of course.
so now I do;
../frysk/autogen.sh ; saydone
If the autogen returns a 0 i get a smily face, otherwise I get a frowny.
Now for the bash guros out there. How do i make it print the previously run command so that the notification says “../frysk/autogen.sh finished “