How to disable Caps Lock key in Linux?

Linux provided a command called “xmodmap” to enable and disable the Caps Lock key functionality. Frankly, i do not understand what’s benefit of disable the Caps Lock key, may be avoid accidentally press on it?

Disable Caps Lock key


xmodmap -e "remove lock = Caps_Lock"

Eisable Caps Lock key


xmodmap -e "add lock = Caps_Lock"

After you issue the command to disable the Caps_Lock key, the Caps_Lock light will not blink any more, no matter how many times you pressed on the Caps_Lock key :), funny trick.

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

Leave a Reply

avatar
newest oldest most voted