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?
Install the tool 'beep'.
$ sudo apt-get install beep
Now you append "; beep" to whatever command you run.
$ bundle install; beep
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"
精彩评论