mooz / xkeysnail

Yet another keyboard remapping tool for X environment
891 stars 112 forks source link

can I map fn key? #91

Open davidsu opened 4 years ago

davidsu commented 4 years ago

I'd like to have fn-[hjkl] for home|pageup|pagedown|end, can it be done?

CSpencerND commented 3 years ago

Fn key isn't seen by the OS. It can't be done with any software unless it's a configurable keyboard that has an app that modifies the firmware.

joshgoebel commented 2 years ago

I take that back this must be dependent on keyboard. My Apple (full size keyboard, wired, older model but has slim profile) keyboard has a fn key (next to page up, page down, etc) and it definitely comes across as a discrete KEY_FN.

I think many laptop keyboards this is NOT the case though, so your mileage may very.

joshgoebel commented 2 years ago

@davidsu This is now possible on my fork IF you have a keyboard that sends Fn as a discrete keycode... (or would send those combos as discrete keycodes) https://github.com/joshgoebel/xkeysnail

You'd need to test each of those combos with evtest and make sure they all generate mappable key events.