XkbKeyKeyType(3)
β¨ NAME β¨
Okay bestie, gather round π β this is XkbKeyKeyType, from the XKB FUNCTIONS corner of the libX11 universe, and its whole job is: obtain the index of a key type or the pointer to a key type. That's it, that's the vibe. Two-for-one energy, we love to see it π
πΈ SYNOPSIS πΈ
XkbKeyTypePtr XkbKeyKeyType (XkbDescPtr xkb, KeyCode keycode, int group);
π ARGUMENTS π
xkbβ the Xkb description of interest, like, the whole lore dump you're digging through π¦keycodeβ the keycode of interest, i.e. which key we're being nosy about πgroupβ the group index. yes girl, the group index π
π DESCRIPTION π
So here's the tea, fr fr: XkbKeyKeyType returns a pointer to the key type in the types vector of the client map in xkb that corresponds to the given keycode and group index. That's the entire plot β no plot twists, no cap π«Ά
β STRUCTURES β
Behold, the XkbKeyTypeRec β she's iconic, she's the blueprint, and she's laid out exactly like this π₯
typedef struct { /* Key Type */
XkbModsRec mods; /* modifiers used to compute shift level */
unsigned char num_levels; /* total # shift levels, do not modify directly */
unsigned char map_count; /* # entries in map, preserve (if non-NULL) */
XkbKTMapEntryPtr map; /* vector of modifiers for each shift level */
XkbModsPtr preserve; /* mods to preserve for corresponding map entry */
Atom name; /* name of key type */
Atom * level_names; /* array of names of each shift level */
} XkbKeyTypeRec, *XkbKeyTypePtr;
Heads up bestie π¨ β those little/* ... */notes are not decorative.num_levelssays do not modify directly, andmap_countsays preserve (if non-NULL). Respect the comments or the struct will simply not slay π
And that's the whole page, mwah π β written by the libX11 girlies, X Version 11, libX11 1.8.14, dated XkbKeyKeyType(3). Stream it, cite it, stay hydrated ππ
π¦ 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