Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I get the terminal bell to play an alert sound out of the regular speakers (not the PC speaker)? I have irssi set up to beep for various IRC events, but nothing happens because the beep uses the terminal bell.

Also, see my related question about visual alerts.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Edit ~/.xprofile and add the line pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg bell.ogg. Then when you log out and log back in, typing echo -e '\a' in the terminal will play an alert sound (glass.ogg). Then I copied bell.ogg (found with locate -i bell.ogg) to the same folder as glass.ogg and modified the above command to use bell.ogg instead. Then, you can adjust the alert volume in Sound -> Sound Effects tab.

This solution worked on Ubuntu 12.10 Quantal Quetzal 64 bit with 3.5.0-22-generic. It's from http://www.richud.com/wiki/Ubutu_Beep_Audible_Bell_Ping_Fix.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.