I would like to set up my terminal to use a visible bell notification. Konsole is my preferred terminal emulator, but I can't seem to figure this out.

Everything I can find on the web points me towards set bell-style visible in .bashrc, or towards Settings->Configure Notifications. The bash setting seems to have no effect, and under configure notifications, none of the options corresponds to a visible bell. konsole notification settings

P.S. for extra credit, if anyone knows why konsole started ignoring the characters "s" and "v" from either keyboard or clipboard when I tried the following in bashrc, I can add that as a separate question: bind bell-style visible

  • By "visible bell notification" do you mean a popup notification? I have that in place for "Bell in non-visible session". It should work the same for "Bell in visible session". – Joe P Jun 14 '17 at 8:56
  • I'd prefer something a little less intrusive, like a brief colour inversion. I really don't want to have to take any action to stop the bell. – craq Jun 14 '17 at 9:03
  • Hmm. You might get some clues at faqs.org/docs/Linux-mini/Visual-Bell.html#s6 . I'm not aware of anything specific to Konsole. – Joe P Jun 14 '17 at 14:36
  • 1
    @JoeP That's not relevant. Konsole ignores the terminal's visual bell setting that can be set by applications, it always performs the action(s) configured in its preferences, and these don't include a traditional visual bell. – Gilles Jun 14 '17 at 23:20
  • 1
    For the extra credit: it's bind 'set bell-style visible'. Bash does strange things when a readline command is malformed instead of showing a proper error message. – Gilles Jun 14 '17 at 23:22

Thanks to @Gilles' hints, I put together something that flashes the command window when there is a bell in a visible session. To do this I wrote a quick bash script:

#flash console as a visible bell
#requires installation of xcalib

xcalib -i -a
sleep 0.01
xcalib -i -a

and entered the full path to this script under "Run command" for "Bell in Visible Session" in the konsole "Configure Notifications" dialog.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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