Wearables Central


Key-Glove: Loading new keymaps



I'll keep this short and sweet.

To remap the keys in linux simply:
  • Copy current keymap (typically us.map.gz) to a new file to edit:
      cd /usr/lib/kbd/keytables
      cp us.map.gz us.newmap.gz
    
  • Gunzip and edit new map (its very straight forward once you open the file):
      gunzip us.newmap.gz
      vi us.newmap
    
  • Gzip your new map:
      gzip us.newmap
    
  • Load new map using loadkeys:
      loadkeys us.newmap
    

Pretty simple eh? just add a line to rc.local to change the map, or you can change the map in your linux kernel and recompile it, but I think its easier to just execute it on the fly so if something goes wrong you get a normal keyboard map.

-Paul

Update: The location of the keymaps is different from above for some linux distros. For example Suse has the maps in: /usr/lib/kbd/keymaps/i386/qwerty/ and it looks like it may use more then just the us map (assuming you're in the u.s.).


This Page Last modified: 2/27/2000
Maintained by: R. Paul McCarty <rpmc@troi.cc.rochester.edu>