How do I disable Caps Lock by command line?

Posted by Echogene on Ask Ubuntu See other posts from Ask Ubuntu or by Echogene
Published on 2011-11-17T17:51:29Z Indexed on 2011/11/17 18:08 UTC
Read the original article Hit count: 253

Filed under:
|
|

For some reason my laptop is stuck in Caps Lock. I have the Caps Lock key mapped by xmodmap to hyper_l, so I don't have a caps_lock key to turn it off. Is there a way I can turn it off by command line? It would be nice if I could reset the lock state without resetting my computer, especially for future reference. This has happened before, but I would like to know now how to do it properly this time.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about xmodmap