Create a X11 geometry parser
In order to have this library work under Wayland, the geometry informations have to be read directly in the client and not querried from the X server.
The keyboard geometry is described in https://www.x.org/releases/current/doc/libX11/XKB/xkblib.html#Keyboard_Geometry
The geometry description files are available in /usr/share/X11/xkb/geometry
on most systems but one would have to do like in rxkb_context_parse_default_ruleset