[ltp] Gnome 2.6 and those Next Window keys
Loic Minier
linux-thinkpad@linux-thinkpad.org
Sat, 5 Jun 2004 01:36:16 +0200
Thomas de Grenier de Latour <degrenier@easyconnect.fr> - Fri, Jun 04, 2004:
> I've managed to get a keyboard that works almost as I want, but as
> you will see, my solution is quite ugly.
Erf, I've spent some time this afternoon coming to something close to
your configuration, and I think there's nothing cleaner right now.
Looking at what you did, I see I've gone a bit uglier than you did.
I went in /etc/X11/xkb, and looked at every step of the translation,
and:
- copied geometry/pc to geometry/thinkpad, kept only the pc102 geometry
I was using, and search for "<UP>", added "<PGL>" and "<PGR>" around
it.
- created a keycodes/thinkpad with:
xkb_keycodes "thinkpad" {
<PGR> = 233;
<PGL> = 234;
};
- created a symbols/thinkpad with:
partial hidden alphanumeric_keys modifier_keys
xkb_symbols "basic" {
key <PGL> { [ XF86Back ] };
key <PGR> { [ XF86Forward ] };
};
- updated the ".dir" files accordingly
The geometry is clearly wrong, since I should adjust the xposition of
the block, and I still have to write a keymap, I tried something like:
default xkb_keymap "thinkpad" {
xkb_keycodes { include "xfree86+aliases(azerty)+thinkpad(thinkpad)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc/pc(pc102)+pc/fr+thinkpad" };
xkb_geometry { include "thinkpad(thinkpad)" };
};
... but this wouldn't work with "setxkbmap thinkpad", nor "setxkbmap
-config thinkpad".
After a while, I understood setxkbmap also takes a -keycode argument
not listed in the man page (this bug has been reported), and the most
important thing I'd like to say is:
DON'T TRUST "setxkbmap -print", IT'S F***ING WRONG!
I hope I'll have more time to look into this ( now that my exam is
over \o/ ) and I think someone should write a decent geometry and
keymap file for the thinkpad. I still don't get how the NumLock magick
is supposed to work, but thanks for the tip!
--
Loïc Minier <lool@dooz.org>