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