13

I'm trying to map caps lock to control in a terminal. X is not enabled. Distro is Arch linux. Is this possible?

Sathyajith Bhat
  • 61,504
  • 38
  • 179
  • 264
So8res
  • 1,521
  • 1
  • 18
  • 30
  • 2
    You should be able to hack at the keyboard map - you can find them under `/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. – new123456 Nov 13 '11 at 02:52

3 Answers3

6

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

So8res
  • 1,521
  • 1
  • 18
  • 30
  • 1
    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 05 '13 at 05:01
4

Just for future reference, wiki of your distro had (or now has) you covered: https://wiki.archlinux.org/index.php/KEYMAP

Chris Kempson
  • 213
  • 2
  • 8
0

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.

JW8
  • 1,192
  • 3
  • 12
  • 26