What's the opposite of setxkbmap -option ctrl:nocaps?

27,114

When you have already set something, you might need to clear before setting something new.

To unset:

To put it back to how it normally is, just setxkbmap -option works for me. – Emanuele Natale Sep 8 '14 at 19:29

Example: I was using setxkbmap -option ctrl:swapcaps so that I could deal with (i.e. unset) caps lock after it got set by random quirks. Today I wanted nocaps, but could not set it because the other setting was still active. I used the command above and then I was able to use setxkbmap -option ctrl:nocaps

Share:
27,114

Related videos on Youtube

John Lawrence Aspden
Author by

John Lawrence Aspden

Updated on September 18, 2022

Comments

  • John Lawrence Aspden
    John Lawrence Aspden almost 2 years

    Normally I have caps lock to be a control key.

    setxkbmap -option ctrl:nocaps

    makes that happen, but I can't remember where I got it from or find any docs (man setxkbmap is singularly unhelpful )

    Can anyone tell me the command to put it back to how it normally is, or at least point me at the docs that tell me what -option ctrl:nocaps actually does?

  • Dogmatixed
    Dogmatixed over 7 years
    You may want to setxkbmap -print first, to see your existing options. If you have several options set and are only looking to drop one you won't have to guess at what they were. Also, if (like me) you're trying to unset capslock that "randomly" turned on you might notice that you have shift:both_capslock set and realize how it got turned on.