Keyboard

Peter Hutterer peter.hutterer at who-t.net
Mon Apr 19 18:55:14 PDT 2010


On Mon, Apr 19, 2010 at 02:19:32PM +0100, Thomas Worthington wrote:
> >xkeyboard-config has the mappings that allow you to specify "ctrl:nocaps"
> >and the map then filled in with the right keysyms. Your chanages For any
> >changes you want to add, it's best to write it up as options.
> 
> OK. I couldn't work out how to get setxkbmap to recognize a
> completely new symbol file ("customised") so I hacked altwin to
> read:

it needs to be linked to from one of the rules files (evdev, usually) so
that setxkbmap -option "foo" translates into the actual symbol file.

> 
> partial modifier_keys
> xkb_symbols "meta_alt" {
>     key <LALT> {        [ Alt_L ]       };
>     key <RALT> {        [ Meta_R ] };
>     key <PRSC> {        [ Multi_key ] };
>     key <SCLK> {        [ Mode_switch ] };
>     key <PAUS> {        [ Caps_Lock ] };
>     modifier_map Mod3   { Meta_R };
>     modifier_map Mod1   { Alt_L };
> //  modifier_map Mod4   {};
> };
> 
> and used  -option altwin:meta_alt
> 
> I would far rather have put the new mappings into a file on their
> own; what else needs updated to allow setxkbmap to read new symbol
> tables and new entries within existing ones, for that matter?
> 
> Also: is there a program which will dump out the keycodes, so that I
> can find out which keys correspond to which <CODE> when I'm using a
> strange keyboard and want to remap it?

"xkbcomp -xkb $DISPLAY -" is the magic command, it works without those flags
but this way it'll just pipe to stdout.

Cheers,
  Peter



More information about the xorg mailing list