Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to do the typical remapping of capslock to control, but I also want to remap left control to be a second super key. I can do this fine with xmodmap, but as soon as I switch to a virtual terminal (ie what comes up when you hit ctrl-alt-f1), I'm back to being stuck with default key mappings. So what I'm mainly looking for is a way to remap the keys in the virtual terminals as well.

I'm ok with having to use xmodmap for stuff in X, and a separate method for virtual terminals, but I'd prefer to do something that handles both situations if possible.

share|improve this question
Similar question, more answers.… – Silfheed Oct 31 '13 at 17:46
up vote 5 down vote accepted

You will need to use loadkeys for your console. See also keymaps and dumpkeys.

share|improve this answer
Cool. Do you know if this specific to the console or will the changes made with loadkeys persist in X as well? – Silfheed Sep 29 '10 at 21:16 looks like I need xmodmap and loadkeys – Silfheed Sep 29 '10 at 21:22


As far as your caps->ctrl goes, this works. You might be able to use this same method to remap your super key as well.

sudo vi /etc/default/keyboard

Now find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make caps an additional ctrl or ctrl:swapcaps to swap them.

For example, mine looks like


then run

sudo dpkg-reconfigure keyboard-configuration

The reason this way is better is that it will take effect on the virtual consoles (e.g. ctrl+alt+F1) as well as in the graphical desktop.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.