I use Nautilus to explore my files. I use a Debian-based OS with KDE Plasma 5.
I use the keyboard a lot. When I press the key up when navigating files, if I'm already at the extremity of the list of files, Nautilus sends a big system beep which I will hear at 100% volume through my headphones. My reaction is comparable to getting electrified.
I have placed the following lines in ~/.bashrc for the sudo (root) user and for my regular desktop user:
# Turn off system beep in console:
xset b off
xset b 0 0 0
However, despite the beep going away from some places in the OS (such as erasing an empty line in the gnome-terminal), it's still in Nautilus. I believe it's because Nautilus doesn't source any of the .bashrc or because it ignores the xset commands.
How do I fix this?
What I need might be at a deeper level than the .bashrc, some file that is executed by everything, but which can still control the sound. Otherwise, disabling the sound another way or replacing it could be interesting.
pcspkrmodule, or using a different sound card - if its the latter you will have to turn off the sound in system settings (including Gnome's as in Stephen's answer) – Wilf Jul 02 '18 at 12:01~/.bashrcis the user configuration file of thebashshell, the default Debian terminal shell. If you realize that, it's pretty obvious why bash settings do not affect other applications like Nautilus. – MSalters Jul 02 '18 at 12:04alsamixermay be usable for adjusting some volume's as well. The bashrc could work in some scenarios, but for root it will only run when root logs in, and nautilus will get likely get most settings from elsewhere! – Wilf Jul 02 '18 at 12:19~/.profileinstead of~/.bashrc. As noted by @MSalters,~/.bashrcis run when you open a new terminal, and not when you log in.~/.profileis run when you log in. (Laughed good on your reaction, I've experienced it myself!) – Teodor Jul 02 '18 at 15:56