XkbKeysymToModifiers(3)

πŸ¦‹ XkbKeysymToModifiers(3) β€” XKB FUNCTIONS πŸ¦‹

okay bestie, this one is from the XKB FUNCTIONS manual crew, and it's literally about figuring out which modifiers are attached to a keysym on the core keyboard. very main character energy for your keymap πŸ’…


✨ NAME ✨

XkbKeysymToModifiers β€” finds the set of modifiers bound to a particular keysym on the core keyboard πŸŽ€


πŸŽ€ SYNOPSIS πŸŽ€

unsigned int XkbKeysymToModifiers (Display *dpy, KeySym ks);

🫢 ARGUMENTS 🫢

  • dpy β€” your connection to the X server, the whole little communication line, iykyk 🌈
  • ks β€” the keysym of interest, aka the key vibe we're checking πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

okay so XkbKeysymToModifiers finds the set of modifiers currently bound to the keysym ks on the core keyboard. the value it hands back is the mask of modifiers bound to ks. no cap, that's the whole glow-up ✨

if no modifiers are bound to the keysym, XkbKeysymToModifiers returns zero. otherwise, it returns the inclusive OR of zero or more of these absolute icons:

  • ShiftMask
  • ControlMask
  • LockMask
  • Mod1Mask
  • Mod2Mask
  • Mod3Mask
  • Mod4Mask
  • Mod5Mask

that's the lineup, bestie β€” exactly those masks, no extras, no invented lore πŸ§šπŸ’œ


mwah πŸ’‹ β€” cute little footer sign-off: this page is serving X Version 11, libX11 1.8.14, and the XkbKeysymToModifiers(3) title tag. the date slot on this footer isn't separately filled in, so I'm not gonna make one up β€” only facts here, periodt πŸ’–

πŸ“¦ where this page comes from