[geeks] Linux keyboard remapping

Phil Stracchino alaric at caerllewys.net
Mon Oct 25 12:16:59 CDT 2004


On Mon, Oct 25, 2004 at 12:04:21PM -0500, Bill Bradford wrote:
> On Mon, Oct 25, 2004 at 01:02:50PM -0400, Phil Stracchino wrote:
> > On what OS?
> 
> See subject. :)
> 
> Fedora Core 2.

Oh.  Missed that.  :)

Uh, for X, I'd use xmodmap, of course; for console, I'd load an edited
keymap with loadkeys.


Since I virtually never use the console, I skip the loadkeys these days 
and do this in .Xmodmap:

keycode  64 = Alt_L Meta_L
keycode  66 = Shift_L
...
keycode 113 = Alt_R Meta_R
keycode 153 = Super_L
keycode 154 = Super_R
keycode 155 = Multi_key

clear lock
clear shift
clear control
clear mod2
clear mod3
clear mod4
add shift = Shift_L
add shift = Shift_R
add control = Control_L
add control = Control_R
add mod2 = Super_L
add mod3 = Super_R

which makes the windows keys and the menu key all do useful things.
(The above keycodes are for an MS Natural Keyboard Pro.  Find the
correct scan codes for your keyboard with xev.)


-- 
  ========== Fight Back!  It may not be just YOUR life at risk. ==========
  alaric at caerllewys.net : phil-stracchino at earthlink.net : phil at novylen.net
   phil stracchino : unix ronin : renaissance man : mystic zen biker geek
     2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
           Linux Now!  ...Friends don't let friends use Microsoft.



More information about the geeks mailing list