XkbRefreshKeyboardMapping(3)
π XkbRefreshKeyboardMapping(3) β from the XKB FUNCTIONS manual, bestie
okay so picture this: your keyboard description inside the X library is looking a lil stale, and you need it to refresh, and this function right here is the one that does it. welcome to the glow-up page, let's go β¨
πΈ NAME πΈ
XkbRefreshKeyboardMapping β update the keyboard description that is internal to the X library
like literally, it's the internal-to-X-library keyboard desc getting its refresh on π«Ά
β¨ SYNOPSIS β¨
Status XkbRefreshKeyboardMapping (XkbMapNotifyEvent *event);
π ARGUMENTS π
eventβ the event that's initiating the remapping. it's giving "the thing that started all this" π
π¦ DESCRIPTION π¦
okay so XkbRefreshKeyboardMapping is the Xkb equivalent of the core XRefreshKeyboardMapping function. no cap. it requests that the X server send the current key mapping information to this client. π«Ά
a client usually invokes XkbRefreshKeyboardMapping after receiving an XkbMapNotify event. that's the standard move, bestie. π
XkbRefreshKeyboardMapping returns Success if it succeeds and BadMatch if the event is not an Xkb event. so if you hand it something that isn't an Xkb event? it's gonna hit you with that BadMatch, sorry not sorry π
and here's the tea on where that XkbMapNotify event even comes from: it can be generated when some client calls XkbSetMap, XkbChangeMap, XkbGetKeyboardByName, or any of the standard X library functions that change the keyboard mapping or modifier mapping. so basically a whole lil squad of functions can set it off β know the whole roster, iykyk π₯
β RETURN VALUES β
SuccessβXkbRefreshKeyboardMappingreturnsSuccesswhen the request that the X server send the current key mapping information to this client is successful. ate, no notes π
π DIAGNOSTICS π
BadMatchβ a compatible version of Xkb was not available in the server, or an argument has correct type and range but is otherwise invalid. two very different heartbreaks, same error name π
π SEE ALSO π
π sign-off π
okay that's the whole page, bestie, go refresh those mappings responsibly π§ and just so you have the receipts: this was X Version 11, libX11 1.8.14, and yes β XkbRefreshKeyboardMapping(3) β 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