Remapping caps lock (again)

August 13th, 2006

I was using xmodmap to re-map the caps lock. I’m not sure why – a better way, which means it also works on the console, is to alter the keymap file. For me (using Gentoo, UK keymap) this was as simple as:

  1. cd /usr/share/keymaps/i386/qwerty
  2. gunzip uk.map.gz
  3. vim uk.map (change “Caps_Lock” to “Escape”)
  4. gzip uk.map
  5. loadkeys uk.map.gz

Leave a Reply