Ubuntu – Terminal in Gnome 3: Disable audible bell, enable visual bell

gnomegnome-terminal

For years, nay, decades (literally – two!), I have visual bell enabled in my terminals whenever possible, be it a humble XTerm or Gnome Terminal. Recently, after I switched from Unity to Gnome 3, I had an audible bell (over stereo speakers) in Gnome Terminal.

My searches up to now always seem to lead into the wrong direction: How to enable the audible bell or how to disable the whole thing completely. That’s not my intention. When at the prompt, when I press backspace too often or just before auto-completion, I want the terminal window to flicker, and I do not want to hear anything. Where is this setting hidden?

Best Answer

Disable audible bell and enable visual bell with:

gsettings set org.gnome.desktop.wm.preferences audible-bell false
gsettings set org.gnome.desktop.wm.preferences visual-bell true

and change the type of the visual bell if you don't need the fullscreen flash:

gsettings set org.gnome.desktop.wm.preferences visual-bell-type frame-flash

Options for visual-bell-type:

  • fullscreen-flash – causes a fullscreen white-black flash
  • frame-flash – causes the titlebar of the application which sent the bell signal to flash