I newly installed xfce on Arch Linux. xfce makes a beep noise every time I press the delete button or backspace, which is really annoying. How can I disable this?
I tried un-commenting
set bell-style none, but that didn't work.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
This Arch Wiki page lists all the options to disable PC speaker (beep) very nicely: https://wiki.archlinux.org/index.php/PC_speaker
For instance, as mentioned by @SauceMcBoss, you can set:
xset b off) to disable it in Xorg (which will solve your problem). To make the change permanent, add this line to either your
Or, to disable the PC speaker globally within one session, the
pcspkr kernel module can be unloaded with:
To prevent its loading by
udev at boot, you can blacklist it in a
.conf file in
/etc/modprobe.d/. For instance:
echo "blacklist pcspkr" | sudo tee -a /etc/modprobe.d/blacklist.conf
I've tried every single thing in this article, and more, and none of them worked. Sure some disabled the system beep for the terminal application, but all of the OS-related beeps were still on.
What finally worked? Finding and renaming the dang sound file (and logging out and back in of my X session).
I renamed the above to "bell2.ogg".
Now I can use my computer without wanting to flip my desk over.
Who the hell thought a super loud beep every time you pressed a key was a good idea? It's like some sort of weird psychological torture.
Note, this will probably revert itself if the
ubuntu-sounds package requires an upgrade, and you'll need to re-move the file off.
In XFCE, similar to this answer, you can disable the bell on XFCE login like this:
cat <<EOF > ~/.config/autostart/beep.desktop [Desktop Entry] Encoding=UTF-8 Version=0.9.4 Type=Application Name=beep Comment= Exec=DISPLAY=:10 xset b off OnlyShowIn=XFCE; RunHook=0 StartupNotify=false Terminal=false Hidden=false EOF
Tested on Debian 11 Bullseye with XFCE4. Also works over RDP connections using FreeRDP (the
DISPLAY=:10 env variable is set because of that, if you use the default X display, then you don't need it).
P.S. I really hope XFCE and other window manager maintainers come to their senses and introduce a sensible default, namely to disable this terrible system bell because it's such a nuissance and annoynace you wouldn't believe. It's extremely annoying and can literally scare small babies and even grownups. Please get rid of this bell.