How to disable system bell in Debian 9 Stretch Xfce?
Hi.
How can I disable the system bell in Debian 9 Stretch Xfce? It beeps if for example I'm in a text editor at the top of the page and push left arrow key. Or if I'm in Thunar and click the arrow but cannot move to another directory, etc. This works but the sound returned on reboot: Code:
xset b off I also tried this, no joy again: https://en.opensuse.org/SDB:Disabling_the_system_bell Thanks. |
Since you're using XFCE4, I would suggest creating a small shell script and adding it to the XFCE4 Sessions and Startup autostart. I'd make it look something like this:
Code:
#!/bin/sh Code:
chmod 755 mystartup.sh Note that in this example it waits 5 seconds before running "xset b off". I find that adding a time delay helps ensure that XFCE4 has fully loaded up before we start messing with X settings. Otherwise, there's a decent chance of the script and XFCE4 stepping on each other's toes. |
Quote:
Hi Isaac. The beep remains. Would it make a difference if '#!/bin/bash' was used instead in the script? Edit: it doesn't. This is very odd because if I manually put 'xset b off' into the terminal, the bell sound goes away. But in the script it never takes effect. |
What happens if you run the script in a terminal window? Use:
Code:
./mystartup.sh |
How to disable system bell in Debian 9 Stretch Xfce?
Blacklist the "pcspkr" kernel module, rebuild the initramfs, then reboot. I haven't ran Debian in quite a while, but this used to be something I did on all my new installations.
|
Quote:
|
All times are GMT -5. The time now is 08:05 PM. |