XkbGetGeometry(3)
π XkbGetGeometry(3) β XKB FUNCTIONS π
okay so this is the XKB functions corner of the manual, and todayβs main character is XkbGetGeometry. no cap, itβs giving βI already have the keyboard description, now gimme the geometryβ energy. π
πΈ NAME πΈ
XkbGetGeometry β loads a keyboard geometry if you already have the keyboard description. periodt. π
β¨ SYNOPSIS β¨
Status XkbGetGeometry (Display *dpy, XkbDescPtr xkb);
π ARGUMENTS π
dpyβ connection to the X server. your link to the server, bestie. πxkbβ keyboard description that contains the ID for the keyboard and into which the geometry should be loaded. itβs both the source of the device ID and the place where the geometry goes. lowkey multi-tasking. β¨
π¦ DESCRIPTION π¦
So hereβs the vibe: you can load a keyboard geometry as part of the keyboard description returned by XkbGetKeyboard. iconic. but if a keyboard description has been previously loaded, you can instead obtain the geometry by calling XkbGetGeometry. in that case, the geometry returned is the one associated with the keyboard whose device ID is contained in the keyboard description. iykyk. π
XkbGetGeometry can return BadValue, BadImplementation, BadName, BadAlloc, or BadLength errors, or Success if it succeeds. literally the whole mood ring of outcomes. π
π DIAGNOSTICS π
BadAllocβ Unable to allocate storage. the allocation said βnot today,β bestie. πBadImplementationβ Invalid reply from server. something came back from the server and it was not it. πBadLengthβ The length of a request is shorter or longer than that required to minimally contain the arguments. the requestβs size said βnot today.β πBadNameβ A font or color of the specified name does not exist. bestie, that name is not in the group chat. πBadValueβ An argument is out of range. one of the values is giving out-of-range behavior. π«
π SEE ALSO π
okay thatβs the whole page. mwah π cute little sign-off: X Version 11, libX11 1.8.14, XkbGetGeometry(3). stay slay, and may your geometry always load. β¨π«Ά
π¦ 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