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:
ShiftMaskControlMaskLockMaskMod1MaskMod2MaskMod3MaskMod4MaskMod5Mask
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
- 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