Making a keymap

Antony Gelberg antony at wayforth.co.uk
Fri Apr 14 13:06:56 UTC 2006


Pupeno wrote:
> On Friday, 14 de April de 2006 14:14, Antony Gelberg wrote:
> 
>>Pupeno wrote:
>>
>>>Hello,
>>>It seems I have to make my own keymap (dvorak with dead keys and altgr),
>>>any ideas where do I start ?
>>>Thank you.
>>>--
>>>Pupeno <pupeno at pupeno.com> (http://pupeno.com)
>>
>>Have you googled?
> 
> Yes.
> 
> 
>>Is this for X, console, or both?
> 
> X, I don't care much about the console (plain Dvorak is ok there; I hardly 
> ever use it nowadays).

I assume you are using the standard Dvorak layout in X.  You can use 
xmodmap to alter any keys that you need to, and when you find the 
correct settings, put them in your .xmodmaprc.  Mine maps £ to shift-4 
in my dvorak layout, and enables num lock on my Thinkpad keyboard.

keycode 13 = 4 sterling
keycode 77 = Num_Lock

(Although this may change as dollar is useful in scripting.)

First, man xmodmap.  It's quite comprehensive.  Look at the -pm and -pk 
options to see what is already configured.  Then it's just a case of 
finding the keysym that you need and mapping it to the relevant keycode.




More information about the ubuntu-users mailing list