Finding the right modifier ID in a japanese keyboard layout

xorg at xorg at
Wed May 14 12:40:46 PDT 2008

xorg at skrev:
> I've got a small laptop with japanese keyboard layout, like this:
> To get AltGr functioning, I've mapped the key just right of the space 
> bar with xmodmap:
> xmodmap -e "keycode 129 = ISO_Level3_Shift"
> This works, but as I understand, xmodmap is out of style.  As I 
> understand, I should do something in XkbOptions in xorg.conf, or make my 
> own symbols definition in /etc/X11/xkb/symbols/

Thanks to you guys, I have now created a more functional norwegian 
keyboard layout for my Kohjinsha SH6 with a japanese keyboard.  Here's 
the result:

I have created the file /etc/X11/xkb/symbols/no_jp with the following 

xkb_symbols "basic" {
   include "no(basic)"
   name[Group1]="Norway - japanese keyboard";

   // apostrophe and asterix on Enter's lower left
   key <AC12> {[ apostrophe, asterisk, dead_doubleacute, multiply ]};

   // less and greater left of arrow up
   key <AB11> {[ less, greater, guillemotleft, guillemotright ]};

   // AltGr on Space's right side
   key <XFER> {
     symbols[Group1] = [ ISO_Level3_Shift ]

In xorg.conf, I've set XkbModel to jp106 and XkbLayout to no_jp.  That's 
it, no more xmodmap for me!

Best regards,

More information about the xorg mailing list