Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 map caps lock to control in a terminal. X is not enabled. Distro is Arch linux. Is this possible?

share|improve this question
You should be able to hack at the keyboard map - you can find them under /usr/share/kbd/i386/include/ and /usr/share/kbd/i386/qwerty/ (on my system - depends on your architecture and keyboard layout). It goes without saying that this should be used as a last resort. – new123456 Nov 13 '11 at 2:52
up vote 7 down vote accepted

BAM, emacs wiki has the answer. Loadkeys does the trick.

share|improve this answer
Even though this question is for "without X", the link provided gives information for all kinds of setups, and I found the easy to do Gnome instructions via this – Karthik T Oct 5 '13 at 5:01

Just for future reference, wiki of your distro had (or now has) you covered:

share|improve this answer

Yes, it should be possible. In this Arch Linux wiki page, there's a lengthy example of remapping a keyboard with xmodmap. In another Arch Linux discussion forum post, another user discusses his xmodmap configuration to disable the caps lock key. You should be able to remap your caps lock to control.

share|improve this answer
xmodmap won't work if X isn't enabled. – Keith Thompson Nov 13 '11 at 2:43
Keith Thompson is correct. I'm trying to remap without X, which is why I'm asking here - it's pretty hard to find a good resource on the net that doesn't suggest xmodmap. – So8res Nov 13 '11 at 4:07
Good point - overlooked the X mentioned in the question. – JW8 Nov 13 '11 at 20:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .