On Fri, 07 Mar 2003 14:39:27 GMT, Richard Martin <[EMAIL PROTECTED]> said: > Can anyone tell me how to set-up keybindings in E that use the "Windoze" > keys, the ALT-GR key or that funny little key with the picture of a > context-menu on it?
First, just run the 'xev' utility, and see what keycode those keys generate. If they don't generate a keycode that 'xev' can see, you're basically screwed and need to fix/hack the X server so they do get generated. Just as a data point, on my keyboard, I get: for 'left m$ flag': KeyPress event, serial 20, synthetic NO, window 0x2600001, root 0x8c, subw 0x0, time 5940290, (89,72), root:(771,1089), state 0x0, keycode 115 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: "" for 'right m$ flag': KeyPress event, serial 25, synthetic NO, window 0x2600001, root 0x8c, subw 0x0, time 5944298, (89,72), root:(771,1089), state 0x0, keycode 116 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: "" for 'funky-context-menu': KeyPress event, serial 25, synthetic NO, window 0x2600001, root 0x8c, subw 0x0, time 5944958, (89,72), root:(771,1089), state 0x0, keycode 117 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: "" Your keycodes may differ. Second, you need to have a keysym other than 'NoSymbol'. This may be doable by beating up on /usr/X11R6/lib/X11/XKeysymDB but may require more - I haven't actually tried it. Once you get them reporting a keysym, then you can just go ahead and use them like any other keysym.... Incidentally, the same technique would apply to get (for instance) the row of cute little buttons on a Microsoft Natural keyboard working - the ones labelled back/forward/stop/.../next track/prev trak/media... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech
pgp00000.pgp
Description: PGP signature