XkbKeycodeToKeysym(3)
hii bestie π welcome to XkbKeycodeToKeysym(3), a page from the XKB FUNCTIONS manual. she's short, she's useful, she's giving "just tell me the keysym" energy. let's go π«Ά
πΈ NAME πΈ
XkbKeycodeToKeysym β finds the keysym bound to a particular key at a specified group and shift level. no cap, that's the whole quest β¨
β¨ SYNOPSIS β¨
KeySym XkbKeycodeToKeysym (Display *dpy, KeyCode kc, unsigned int group,
unsigned int level);
π ARGUMENTS π
dpyβ your connection to the X server. the link-up, the handshake, the "hello X, it's me" πkcβ the key of interest. your main character keycode πgroupβ the group of interest. which group are we snooping on? πlevelβ the shift level of interest. the shift-level vibe check πΈ
π¦ DESCRIPTION π¦
okay so XkbKeycodeToKeysym returns the keysym bound to a particular group and shift level for a particular key on the core keyboard. that's it β you point at a key, a group, and a level, and she gives you the keysym back. iconic behavior, honestly π
but bestie, the boundaries are real: if kc is not a legal keycode for the core keyboard, or if group or level are out of range for the specified key, XkbKeycodeToKeysym returns NoSymbol. not a keysym, not a surprise, just NoSymbol. periodt π
tiny vibe-check: "out of range" and "not legal" both mean NoSymbol β no cap, that's the documented answer. π
xoxo π
source/version: X Version 11, libX11 1.8.14; date: not listed on this page; page: XkbKeycodeToKeysym(3). slay and goodbye π
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms