|
libxkbcommon 1.14.0-beta1
Library implementing the XKB specification for parsing keyboard descriptions and handling keyboard state
|
Enumerations | |
| enum | xkb_keymap_format { XKB_KEYMAP_FORMAT_TEXT_V1 = 1 , XKB_KEYMAP_FORMAT_TEXT_V2 = 2 } |
Keymap formats for parsing and serializing keymaps.
| enum xkb_keymap_format |
The possible keymap formats.
See The XKB keymap text format, V1 and V2 for the complete description of the formats and Keymap support for detailed differences between the formats.
| Protocol | libxkbcommon keymap format | ||
|---|---|---|---|
| Name | Keymap format | Parsing | Serialization |
| X11 | XKB | XKB_KEYMAP_FORMAT_TEXT_V1 | Always use XKB_KEYMAP_FORMAT_TEXT_V1, since the other formats are incompatible. |
| Wayland | xkb_v1 |
| At the time of writing (July 2025), the Wayland Therefore the recommended serialization format is XKB_KEYMAP_FORMAT_TEXT_V1, in order to ensure maximum compatibility for interchange. Serializing using XKB_KEYMAP_FORMAT_TEXT_V2 should be considered experimental, as some clients may fail to parse the resulting string. |
| Enumerator | |
|---|---|
| XKB_KEYMAP_FORMAT_TEXT_V1 | The classic XKB text format, as generated by xkbcomp -xkb.
|
| XKB_KEYMAP_FORMAT_TEXT_V2 | Xkbcommon extensions of the classic XKB text format, incompatible with X11.
|