I'm trying to map caps lock to control in a terminal. X is not enabled. Distro is Arch linux. Is this possible?
3 Answers
BAM, emacs wiki has the answer. Loadkeys does the trick.
-
1Even 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 Oct 5, 2013 at 5:01
Just for future reference, wiki of your distro had (or now has) you covered: https://wiki.archlinux.org/index.php/KEYMAP
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.
-
4
-
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.– So8resNov 13, 2011 at 4:07
-
/usr/share/kbd/i386/include/linux-keys-bare.inc
and/usr/share/kbd/i386/qwerty/us.map.gz
(on my system - depends on your architecture and keyboard layout). It goes without saying that this should be used as a last resort.