Subject: Re: mapping keys
To: None <netbsd-help@netbsd.org>
From: Wenchi Liao <wliao@midway.uchicago.edu>
List: netbsd-help
Date: 06/24/1999 15:35:00
Michael Richardson wrote:
>
>>>>>> "Wenchi" == Wenchi Liao <wliao@midway.uchicago.edu> writes:
>
>    Wenchi> Chris Jones wrote:
>    >>>>>>> "Wenchi" == Wenchi Liao <wliao@midway.uchicago.edu> writes:
>    >>
>    Wenchi> I'm using one of those windows keyboards with netbsd
>    Wenchi> 1.4/i386. Using xev, pressing the ``windows'' key or the ``menu''
>    Wenchi> key generates the output listed below (same general output for
>    Wenchi> both menu and windows keys).
>    >>  The important thing is the keycode given below.  I would use xmodmap
>    >> to map the keycode to a given keysym.  I don't remember exactly how to
>    >> do it, but the xmodmap(1) man page ought to explain it.
>
>    Wenchi> Blurp...should study the examples more carefully....
>
>    Wenchi> So, my $HOME/.xmodmap file contains: keycode 115=Meta_L keycode
>    Wenchi> 116=Meta_R keycode 117=Escape
>
>    Wenchi> ...which maps to the left windows key, right windows key, and
>    Wenchi> menu key.
>
>  Does this work when you have the XKeyboard Extension enabled?

I'm not sure what the XKeyboard Extension is. I'm using
stock 1.4 install set, with a home brew Kernel-in-a-Box. If
you mean altering the keyboard via /etc/XF86Config, then
yes, it does work. I use the X server to remap left control
and caps lock as well.

I've gone on to refine the keyboard a bit by swapping the
backspace key with the |\ key. This way, the backspace key
is now closer to my right pinky (since I use it much more
than |).

On a related note (talking about X and all): I've suddenly
lost my ability to access the menus in xterm. If I move the
cursor on top of an xterm and hit control+mouse 1, then I
should get a popup menu. Instead, I get the top left corner
of the menu, and the rest of the menu seems to be clipped.
The menu item that I do see seems to be fine: I can move
the cursor and highlight it. But I only see the first half
of one item.

I've had this happen on Sun's before, so I would think it
is a configuration thing. OTOH, I'm using fvwm 2.2.2 with
the same config files (except for the xmodmap stuff) as on
my netbsd 1.3 laptop with fvwm 2.2. Although I never could
get the X server to swap control/capslock on my laptop....

WL