|
xkbcommon 1.14.0-beta2
Reference library implementing the XKB specification for parsing keyboard descriptions and handling keyboard state
|
xkbcommon provides multiple <abbr title="Command-Line Interface">CLI</abbr> tools for debugging, grouped under the xkbcli application. Please consult the manual pages `man xkbcli` for the complete documentation of each tool. -->
libxkbcommon-tools package installed.xkbcli interactive Test your configuration interactively. It chooses the appropriate backend based on the session type. Alternatively you may select explicitly the backend:
xkbcli interactive-wayland xkbcli interactive-x11 xkbcli interactive-evdev /dev/input/event* devices, you may need to add your user to the input group or run as root. [!TIP] You may want to use the flag
--enable-composeif your layouts use dead keys.
xkbcli dump-keymap Dump an XKB keymap from a display server. It chooses the appropriate backend based on the session type. Alternatively you may select explicitly the backend:
xkbcli dump-keymap-wayland xkbcli dump-keymap-x11 xkbcli how-to-type Find the required key combinations to produce a specific character or keysym.
xkbcli list List available layouts, variants, and options provided by an XKB database.
xkbcli compile-keymap Compile a keymap and inspect its properties.
[!TIP] Use the options
--explicit-*to force the corresponding values to be explicit. This is especially useful to debug compatibility interpretations.
xkbcli compile-compose Compile Compose files.
xkbcli info Each error has a unique identifier printed as [XKB-nnn] in the log.
See the error index for the documentation of each error.
~/xkb-test. Note that in order to test it safely, it should not be one of the locations that xkbcommon searches.~/xkb-test/symbols/my-layout.Test if your changes compile successfully:
--include* arguments is important here.If it does not compile, you may add the flag --verbose for additional information.
Test if it behaves correctly. Note that you may need to add your user to the input group or run as root.
~/xkb-test to one of the user-configuration locations, restart your session, update the keyboard configuration using your usual UI and enjoy your XKB customization!X11: Unfortunately Xorg does not support alternative paths, so the next best option is to use the venerable xkbcomp tool.
Happy hacking!