Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Mapping and re-mapping Keyboard Keys

On 27/06/17 08:34, Aaron Digulla wrote:
xmodmap -pke | less

These keycodes do not seem to match the system. For example in the output of this command it says:

keycode 158 = XF86WWW NoSymbol XF86WWW

I ran setkeycodes e020 158

When I press the e020 (Internet) button xev says I have pressed code 166 (Back button).

How on earth has this happened? I specified 158 not 166. What have I done wrong?

Here is the xev output:

KeyPress event, serial 37, synthetic NO, window 0x4200001,
root 0x4be, subw 0x0, time 1723049, (-426,772), root:(567,824),
state 0x10, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4200001,
root 0x4be, subw 0x0, time 1723136, (-426,772), root:(567,824),
state 0x10, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


No but there are lots of uncommon keycodes which you can use. For example,
F13-F35 or KP_F1...KP_F4.

In the output of the command xmodmap -pke | less there are no codes for F13-F35 or KP_F1 etc

I would like to set HK1 - HK4 to F13 - F16 How do I find the keycodes for these buttons

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >