I would like to add a new keyboard layout (FR - AZERTY AFNOR). What is the correct way to do it ?
Ideally I would like to use it for everything:
- full disk encryption
- TTY
- xenodm
- xenocara session
For now, I updated /usr/X11R6/share/X11/xkb/symbols/fr
to add the variant, which I load in xenodm and my xsession using setxkbmap
.
However I feel like it’s not “clean” as it should be done with wsconsctl
.
So what is the correct way to do it ?
depending on what sort of keyboard you have, you could do it in the keyboard’s firmware:
https://github.com/qmk/qmk_firmware
https://github.com/kmonad/kmonad
I already use QMK and even have a base layer to emulate this keymap indeed :) But I feel like I should be able to do it “correctly” on openbsd.
The machine in question is a notebook so I’d like to be able to use this layout on the integrated keyboard.