29

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?

MPi
  • 2,201

3 Answers3

47

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
A.B.
  • 92,125
1

Go to Preferences, Profiles, click on the active profile, click the Text tab, and uncheck "Terminal bell"

Mahdi mehrabi
  • 484
  • 5
  • 4
0

In Ubuntu 24.04, it is possible to achieve what you want via the "Settings" page.

To turn on screen flashing on alert:

Settings > Accessibility > Hearing > Visual Alert (ON)

To turn off audible bell on alert:

Settings > Sound > Alert Sound > None