Re:Wayfire (a Wayland compositor) 0.8.0 announcement
by dasyatidprime on Tuesday October 10, 2023 @02:35PM
(#37835740)
That's the same thing I was getting at, yes. When I said “KEY_Q in the header file”, I was referring to the #define that attaches it to a number and pointing out how it doesn't actually map to the conceptual Q, and that's why I mentioned scancodes specifically. Keysyms are indeed a separate layer, and I agree that users expecting to be able to configure on keysyms and being given the QWERTY-derived scancode mapping instead is confusing.
Imo it makes sense to support defining mappings according to both modes of reference, and even allow mixing them into a single config. Neither way of thinking seems inherently better or worse to me. Just depends on preference, intuition, and expectations.
--
1: https://www.man7.org/linux/man-pages/man5/keymaps.5.html