A script to turn off the 'beep'

A script to turn off the 'beep'

When you push the wrong key in Linux, it beeps.. it even beeps sometimes when you press the right key.. If you get irritated, just run this script with a parameter 'off' or 'on' (I think it'll only work under the bash shell)

#!/bin/sh
if [ "$1" = "off" ]; then
	echo -e "\33[11;0]"
	echo "Bell turned off."
fi

if [ "$1" = "on" ]; then
	echo -e "\33[10;750]\33[11;250]"
	echo "Bell turned on."
fi

if [ "$1" = "" ]; then
	echo "Usage: $0 <on|off>"
fi
(If you're reading this from the web, it might be more convenient to download the file by shift clicking here)