[PLUG] loadkeys: remapping ctrl_l and caps_lock

Rich Shepard rshepard at appl-ecosys.com
Fri Jul 12 17:14:01 UTC 2002


  I've read the men pages for loadkeys, dumpkeys and keymaps. According to
the keymaps man page, the following will swap the left control key and the
caps lock key when working on a console:

# Exchange the left Control key and the Caps Lock key on the keyboard
keycode 58 = Control
keycode 29 = Caps_Lock

  This did not work when I tried it out. Then I ran dumpkeys and learned
that that's how the keys are already defined. So, I'm missing something
here and I'd appreciate some guidance on how to effect this change.

  I've swapped the two keys in X on both my workstation and notebook by
creating a ~/.xmodmap from the examples in the man page. Works just fine.
Now I want to do the same thing, especially on the notebook. On that machine
I constantly press the caps lock key when reaching for the tab key. By
swapping the control and caps lock keys I'll both eliminate that problem and
put the control key where it's more easily reached while typing.

Thanks,

Rich





More information about the PLUG mailing list