this post was submitted on 19 Jul 2023
6 points (100.0% liked)
OpenBSD
539 readers
1 users here now
General OpenBSD community!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Doing it via wscons(4) requires recompiling the kernel I think. Have a look at wskbd(4) and https://cvsweb.openbsd.org/src/sys/dev/pckbc/
I eventually managed to do it with
/etc/wsconsctl.conf
. You can load a base layout ("fr" in my case), and remap keys as you want using their symbols. Here is an exerpt from what I've done:The hardest part is to figure which keycode correspond to which key on the keyboard, but it's not too hard if you dump the base layout with
wsconsctl keyboard.map
before-hand.Nice - thanks for sharing