Linux – Remapping keys system wide in linux, not just in X

keyboard-layoutlinuxUbuntu

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.

Best Answer

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

Related Question