qmk sends HID Scancode
KC_C, KC_F13, KC_SPC
xkb receives standard key identifiers
[ Hardware USB HID Scancode ]
│
▼ (Kernel USB HID driver translates)
[ Linux evdev Kernel Keycode ] 8-bit keycode q == 16, e == 18
│
▼ (Wayland / X11 adds +8 offset)
[ Wayland / XKB Keycode ] <── (This is the key: 24 in your log!) q == 24, e == 26
│
▼ (XKB maps using Layout + Modifiers)
[ XKB Keysym ] <── (This is sym: q (113) or sym: Q (81))
The 4 Shift Levels
Each key definition inside { [ ... ] } contains up to 4 levels (separated by commas):
Level 1 (Normal): Unmodified keypress (e.g., e).
Level 2 (Shift): Shift + keypress (e.g., E).
Level 3 (AltGr / Level3): Right Alt (or designated switch key) + keypress (e.g., EuroSign → €).
Level 4 (Shift + AltGr): Shift + Right Alt + keypress (e.g., cent → ¢).