What is libxkbcommon?
A keyboard keymap compiler and support library that implements the X Keyboard Extension (XKB) specification for parsing keyboard descriptions, compiling keymaps, tracking keyboard state, and providing utilities (including Compose/dead key handling) for use in display servers, compositors, and toolkits.
What libxkbcommon does
A keyboard keymap compiler and support library that implements the X Keyboard Extension (XKB) specification for parsing keyboard descriptions, compiling keymaps, tracking keyboard state, and providing utilities (including Compose/dead key handling) for use in display servers, compositors, and toolkits.
- Compiles and processes a reduced subset of XKB keymaps (X Keyboard Extension specification)
- APIs for creating keymaps from RMLVO (rules/model/layout/variant/options) names
- APIs for creating keymaps from provided keymap strings (e.g., from a compositor)
- Keyboard state tracking APIs (e.g., modifiers and LEDs) via per-device state objects
- Module for handling Compose sequences and dead keys
- Optional X11 integration library (libxkbcommon-x11) for obtaining keymaps from X11 devices
- CLI tooling provided via the xkbcli application
- Separate registry library for listing available keyboard layouts
Category: Application Composition Platform. libxkbcommon is open source and free to use.
What teams use it for
- Wayland compositors/clients loading keymaps provided by the compositor and interpreting key events
- X11 clients retrieving keymaps from the X server/device and translating keycodes to keysyms
- Direct evdev input consumers translating kernel key events into symbols and text input behavior
- Validating/inspecting keyboard layouts, keymaps, and Compose behavior using xkbcli tooling
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does libxkbcommon do?
A keyboard keymap compiler and support library that implements the X Keyboard Extension (XKB) specification for parsing keyboard descriptions, compiling keymaps, tracking keyboard state, and providing utilities (including Compose/dead key handling) for use in display servers, compositors, and toolkits.
How common is libxkbcommon in large enterprises?
Samplify finds libxkbcommon in about 1 in 10 of the large enterprise software estates it has analysed.
Is libxkbcommon free?
libxkbcommon is open source and free to use.
What can replace libxkbcommon?
Other tools in the same category include NuGet, pkgconf, Mutter, Jakarta ORO.
Do we already own something that does what libxkbcommon does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with xkbcommon.