hikari wayland compositor (https://hikari.acmelabs.space)
#4Feature: support specifying keyboard layout by full xkb file
I have a custom xkb symbols file for my personal layout that's been tweaked over the years. Now that I've been trying out wayland compositors a bit, it'd be great to be able to use this layout rather than one of the standard system-wide ones, ideally without having to copy mine over to the standard ones.
I found in Sway that it offers an 'xkb_file' input command that lets you specify a full xkb file containing the combination of rules, model, layout, variant and options, which solves this nicely for me! It'd be nice with similar support in hikari, either via an environment variable or as part of the 'input' section.
The Sway manual also suggests that such a combined xkb file can be produced on a running system (also in X11 too) via 'xkbcomp $DISPLAY keymap.xkb', which is helpful to provide in the manual if an option for this is added!
Yep this makes sense, moving keyboard configuration into the config file is still on the list of things to do. But it probably needs a bit more work to make it work properly with reloading the config. It's probably a good idea to make this happen before the 2.0.0 release because this requires users to adjust their setup.
I've started working on
xkb_file
support. Patch has not been merged yet but it's ready for testing. https://hikari.acmelabs.space/patches/keyboard-configuration.dpatchPatches have been pushed to the repository and staged for 2.1.0