OneDeadKey / kalamine

Keyboard Layout Maker
MIT License
105 stars 29 forks source link

new `xkb/symbols/custom` target #36

Closed fabi1cazenave closed 9 months ago

fabi1cazenave commented 9 months ago

Following the discussion in #29, @nivopol has pointed me to a quick and straight-forward way to install a keyboard layout on XKB without running kalamine as root:

https://who-t.blogspot.com/2021/02/a-pre-supplied-custom-keyboard-layout.html https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/189/diffs

Here’s an attempt. It seems to work for me on Xorg (i3) and Wayland (sway): kalamine now produces an *.xkb_patch file, which can be sudo-copied to /usr/share/X11/xkb/symbols/custom.

It still requires sudo but it’s a valuable improvement. One of the cool benefits is that (if supported) this symbols/custom file will not be overwritten if the OS updates XKB.