automate/001_system_bell.sh

23 lines
506 B
Bash
Executable File

#!/usr/bin/env bash
# kill the beep
# https://wiki.archlinux.org/index.php/Disable_PC_speaker_beep
# bash shell
#echo 'set bell-style none' >> ~/.inputrc
#echo 'set bell-style none' >> /etc/inputrc
# ~/.screenrc
#vbell on
# system console
#echo "setterm -blength 0" > /etc/profile.d/disable-beep.sh
# X11
xset b off
# .inputrc
bash -c `echo "set bell-style visible" > /etc/inputrc`
#all - /etc/modprobe.d/blacklist
modprobe -r pcspkr
bash -c `"echo 'blacklist pcspkr'" >> /etc/modprobe.d/nobeep.conf`