How to Keybind Numpad keys on Niri
Yeah… I obsessively bind my actions to keymaps. Anyways! I discovered that Niri has a weird behaviour (actually i think it might be a wayland quirk, I did not research into it much) of interpreting numpad keypresses not in the num keys XKB format but in the non-numlocked XKB format meaning. Pressing 2 on the numpad even with numlock on, Niri will read it as
KP_Down instead of KP_2. . And because i am using a Keychron K6 Max (please sponsor me for mentioning you), I don’t know what are the non-numlock key presses. I had to use wev and with my numlock off, try out all of them and catalog them, now that i think about it I possibly could have asked.
Others faced this issue too!
https://github.com/niri-wm/niri/issues/493
https://github.com/hyprwm/Hyprland/issues/2682
Thanks to https://github.com/fversaci at https://github.com/niri-wm/niri/issues/493#issuecomment-2205905502 for sharing his finding. Well so to the future me and whoever reads this post here is the mapping, ordered as keyboard’s numpad, so that one can easily reference it. 7 KP_Home | 8 KP_Up | 9 KP_Prior |
4 KP_Left | 5 KP_Begin | 6 KP_Right |
1 KP_End | 2 KP_Down | 3 KP_Next |
Loading...