How to disable beep tone in xfce when the delete button is pressed?
Solution 1
To disable the bell for all X applications:
xset b off
Solution 2
Go to SETTINGS → SESSION → STARTUP, button ADD, type: name "beep" and in last field type "xset b off".
Solution 3
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
(or xset b off
) to disable it in Xorg (which will solve your problem). To make the change permanent, add this line to either your .xinitrc
or xprofile
file.
Or, to disable the PC speaker globally within one session, the pcspkr
kernel module can be unloaded with:
rmmod pcspkr
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" > /etc/modprobe.d/blacklist.conf
Solution 4
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).
/usr/share/sounds/ubuntu/stereo/bell.ogg
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.
Related videos on Youtube
![DScript](https://lh6.googleusercontent.com/-An5tD7wW6AM/AAAAAAAAAAI/AAAAAAAAABc/rNPPZrvjfXk/photo.jpg?sz=256)
DScript
Updated on September 18, 2022Comments
-
DScript almost 2 years
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. -
Sauce McBoss almost 9 yearsMay be helpful: xfce.10915.n7.nabble.com/Beep-td8866.html
-
math about 6 yearsThis works fine. Although after rebooting I have to redo it. Is there a way to permanently disable it?
-
prosoitos over 5 years@math You can add it to your
.xinitrc
file -
Alcamtar about 4 yearsIn Settings -> Session and Startup there is no "Startup" section. There is a Settings -> Session and Startup -> Application Autostart -> Add button... is that what you are referring to?
-
Balázs Börcsök over 2 yearsIf you are using a preinstalled XFCE instance you can add it in Session and Startup as well.