Wednesday, September 10, 2014

Classics: Disable Caps Lock key

The web contains a rich history of ways to disable the Caps Lock key in linux.  In my experience a lot of these methods don't actually work anymore.  Although i do recognize that a lot of users are more interested in remapping or modifying Caps Lock functionality, I'm only out to disable that damn button.

Ways which i have found that work:

  • setxkbmap -option caps:none
  • setxkbmap -option ctrl:nocaps
  • xmodmap -e 'keycode 66 = '

Ways (among others) which i found did not work:
  • xmodmap -e "remove lock = Caps_Lock"
  • xmodmap -e "clear Lock"
Using the setxkbmap method seems to be much more flexible, but directly mapping the keycode to nothing worked fine for my purposes. 

No comments:

Post a Comment