The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Using xev to check the keysym...

asked 2012-11-03 02:06:31 +0000

688a gravatar image

updated 2012-11-03 03:42:52 +0000

Hi there.

My laptop is a Thinkpad. I tried to map the bindsym to the function keys so I can easily call some applications.

Since the Thinkpad is using the function keys to map the other functions, users need to press Fn + functionkey at the same time. What I meant is, if I want to press F1, I need to press Fn+F1; otherwise pressing F1 in my laptop will mute my speaker instead.

So I use xev to check the keysym. F1 key is "XF86AudioMute". F2 key is "XF86AudioLowerVolume" and etc.

But F4 doesn't return a keysym. So, does that mean F4 can't be used?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-03 04:01:53 +0000

Else gravatar image

This is what xev returns on my X220:

KeyPress event, serial 32, synthetic NO, window 0x2000001, root 0xb2, subw 0x0, time 10473642, (96,319), root:(99,411), state 0x0, keycode 70 (keysym 0xffc1, F4), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2000001, root 0xb2, subw 0x0, time 10473737, (96,319), root:(99,411), state 0x0, keycode 70 (keysym 0xffc1, F4), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False

Maybe the key is being grabbed by another application?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-03 02:06:31 +0000

Seen: 575 times

Last updated: Nov 03 '12