When running commands such as bundle install
(for Ruby apps), I'd like to hear a small sound (or popup) notification when the command finishes. How can I do this?
Asked
Active
Viewed 6,295 times
8

user94154
- 16,176
- 20
- 77
- 116
2 Answers
5
Install the tool 'beep'.
$ sudo apt-get install beep
Now you append "; beep" to whatever command you run.
$ bundle install; beep

maletor
- 7,072
- 7
- 42
- 63
-
Also, I am aware that Konsole (from KDE) has this feature. – maletor Nov 25 '10 at 01:59
-
Well, Ubuntu 13.10 is alpha and if your internal speaker is disabled you should enable it for this to work. Here is the [manual](http://linux.die.net/man/1/beep). – maletor Jul 19 '13 at 20:38
-
1I installed it, but it didn't work for me on Lubuntu 12.10. So I used "rhythmbox-client --play" command. It launches rhythmox and plays last song – Tebe Jan 07 '14 at 13:01
4
To get a pop-up notification, you can use notify-send. This gives you a notification using the same bubble pop-up as you see the OS using for new mail, etc. It is non-modal, so it will only last for a set amount of time though. You can extend the amount of time with the -t option.
Zenity will give you a modal pop-up than you can clear manually. Use something like:
zenity --info --text="message text"

Nerdfest
- 1,675
- 13
- 20