Sound notification in Ubuntu terminal

When running commands such as bundle install (for Ruby applications), I want to hear a small sound (or pop-up) notification when the command completes. How can i do this?

+7
command-line terminal
source share
2 answers

Install the beep tool.

 $ sudo apt-get install beep 

Now you add beep to any command that you run.

 $ bundle install; beep 
+4
source share

To get a pop-up notification, you can use notify-send. This gives you a notification using the same popup popup as the OS used for new mail, etc. This is not modal, so it will only last a certain amount of time. You can increase the time with the -t option.

Zenity will provide you with a modal popup that you can manually clear. Use something like:

 zenity --info --text="message text" 
+2
source share

All Articles