Posted by Steve on Fri 18 Mar 2005 at 16:06
One thing that has often annoyed me about most typical Linux installations I've seen has been the annoying frequency of console beeps.
Take GNU Bash for example, my installation is setup so that I can save typing and complete filenames, directories, and command line arguments merely by pressing the TAB key. However when I type an unambigious word it beeps at me.
For the case of bash specifically I can disable this by running:
echo 'set bell-style none' >> ~/.inputrc
(This actually affects all programs that use GNU Readline).
However this does nothing to stop other programs, such as GNU Screen from also making beep noises.
However there is a simple solution to remove console beeps completely, for all programs.
Within the X11 Window SystemFrom the system consoleTo remove all console beeps whilst running X you should execute:
xset b offThis disables the console beep for all programs.
To remove all console beeps whilst running from the system console execute:
setterm -blength 0This disables the console beep for all programs, by setting the "beep length" to zero.
Each of these commands will allow you to alter other things too, and have useful and interesting man pages. To view them use one of the following commands:
man xset man setterm
I guess that's a good point, to only disable annoying beeps not potentially useful ones.
I guess for me I have a short attention span and any interruption is bad.
Each to their own ..
Steve
-- Steve.org.uk
[ Parent ]
[ Parent ]
tcsh also allows you to disable beeps via either:
set nobeep set visiblebell
Still the point of this piece was to disable things globally rather than on a per-application basis.
Steve
-- Steve.org.uk
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
I admit I'm not entirely sure what you mean. However you might be able to accomplish what you want via the help of this article: Running scripts automatically when X starts.
Steve
--
[ Parent ]
echo -e "\33[10;25]\33[11;10]" #bell: 25Hz 10msThis eliminates annoyance from the beeps. (You might want to adjust the parameters for your particular PC speaker.)
--
...Bye..Dmitry.
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
It's always better to turn off only the annoying beeps; then the important beeps can remain and get your attention when it's really necessary. Therefore, don't disable beeps completely in the terminal or in X; turn it off in the applications which annoy you.
[ Parent ]