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.

I'm using natty. I'm using classic. I use raw xterms (the latest build, 270, in fact). I've done

xset b 100 
pactl upload-sample /usr/share/sounds/ubuntu/stereo/message.ogg bell.ogg

But I want something more fine grained than this: I want to say "if the bell originated in some particular pseudoterminal make a particular sound, but if it originated in some other particular pseudoterminal, generate some other sound"

share|improve this question

1 Answer 1

I am quite sure this is not possible without modifications to the source of pulseaudio plugin x11-bell (or perhaps compiz, which might be your windows manager). If configured properly before compilation, xterm rings the bell through XkbBell(3), which passes the display and window to any program listening to XkbBellNotify events. If configured differently, xterm uses XBell(3) which does not pass this information.

Unfortunately, even if xterm is configured properly, both pulseaudio and compiz discard the display and window information (pulseaudio only uses the percentage information to set the volume).

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.