Disabling Caps Lock – Ubuntu

Whenever I get a new keyboard for my desktop computers, the first thing I do is remove the Caps Lock key. It’s a useful key to be sure, but I dislike it. It’s much better in my mind to use the Shift key. As a result, I have been looking for a way to disable it, which I knew was possible in Linux at the very least.

I don’t know if this fix works in other distros than Ubuntu, though I don’t see why it shouldn’t. Here’s how to do it:

  • Open your terminal console
  • Enter the command xmodmap -e "clear Lock"
  • Hit enter
  • Enter your admin password

Should you wish to turn it back on (although I’m not sure why you’d want to), here’s how:

  • Open your terminal console
  • Enter the command xmodmap -e "add Lock = Caps_Lock"
  • Hit enter
  • Enter your admin password

Posted

in

,

by

Comments

By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.