How do I enable audible bell in xfce terminal?

hi, so what I’ve done now:
I have MiscBell=TRUE in ~/.config/xfce4/terminal/terminalrc
I have “enable event sounds” and “enable feedback sounds” enabled in appearance->settings
I have “audible bell” enabled in xfce-terminal->edit->preferences->advanced (visual bell doesn’t work either)
in kitty both tput bel and echo -n $'\a' does what it is supposed to do (I can hear it) however in xfce terminal neither of those work
is there anything else I can do? how do I make audible bell work in xfce terminal? Thank you in advance for your replies.

I don’t use sounds in xfce, but from my notes, I have the following:

xfce System Sounds:

libcanberra has to be installed

profile
export GTK_Modules="canberra-gtk-module"

systemctl enable canberra-system-bootup.service

reboot

If you are using pipewire, you may need to install pipewire-x11-bell

Open Settings Editor → xsettings
Net-SoundThemeName to freedesktop or another sound theme that you may like.

Also from Arch Pipewire-wiki (PipeWire - ArchWiki)

Section 5.1.28:

Terminal bell not working

From PipeWire’s perspective, one must have the module x11.bell loaded. This shall be the configuration default (see also in config files mentioned above). Check if you have package pipewire-x11-bell installed. Also, your window manager might influence the terminal bell, e.g., for xfwm, check in the xfwm-terminal settings that “Audible bell” is activated. Now, restart pipewire service etc.

That was indeed the solution for a system using pipewire. Just tested. Interestingly, it worked if only enabled in Terminal settings, even if system sounds were disabled. That doesn’t mean it doesn’t use some components from there, i didn’t break my working system sounds just to test :slight_smile:

Now…i will uninstall it…since sounds in xfce are sooooo buggy. It turns out, as long as the thing is installed, it makes the annoying sound on attempt to logout or when overscrolling lists. Even if the bell in terminal is off and system sounds are off.

1 Like

Also, if you want sounds to work like in another OS that I won’t mention here, it would be best to use a different sound theme. I have read that freedesktop is quite incomplete.

Here is my list of themes (mostly from pling), sorted by number of sounds

[teo@teo-lenovo-v15 sounds]$ pwd
/home/teo/.local/share/sounds
[teo@teo-lenovo-v15 sounds]$ find . -mindepth 1 -maxdepth 1 -type d -exec sh -c 'echo "$(find "$1" -type f | wc -l) $1"' _ {} \; | sort -nr
81 ./simple
68 ./Smooth
62 ./Ocean
48 ./Modern Minimal UI
43 ./Harmony 2
41 ./Enchanted
33 ./Windows 11
32 ./Windows XP
32 ./Windows7
32 ./Windows10
32 ./Cobalt
28 ./MacOS Sounds
28 ./freedesktop
22 ./Deepin
9 ./alsa
8 ./quadrapassel
6 ./elementary
2 ./speech-dispatcher
1 Like

is pipewire-x11-bell installed ?

pacman -Qs pipewire-x11-bell 
2 Likes

sound-theme-freedesktop includes /usr/share/sounds/freedesktop/stereo/bell.oga

1 Like