How to make a custom xkb layout/variant mapping permanent in an xorg session?

aprekates aprekates at posteo.net
Thu Feb 4 10:29:25 UTC 2021


OS: Debian GNU/Linux 10 (buster) x86_64
Kernel: 4.19.0-13-amd64
DE: KDE
Display: x11
server: X.Org 1.20.4

I managed to create a custom xkb mapping using a home directory which 
contains a xkb keymap description (my-map-usgr-workman) and a symbols 
file and feeding those in xkbcomp:

~/.config/xkb$ tree
.
├── my-map-usgr-workman
├── symbols
│   ├── ergogr

$ xkbcomp -I$HOME/.config/xkb my-map-usgr-workman  $DISPLAY

My question is : What is the way to make those changes permanent during 
a reboot?.

----------------------------------------------------------------------------------------------

Some related guides i have found regarding on ways to create a new xkb 
layout or variant and how to enable those changes (two tasks that go 
together usually).

- a couple of sites proposing the local folder way of enabling a new layout

      https://www.vinc17.net/unix/xkb.en.html
      https://a3nm.net/blog/xkbcomp.html
      https://www.choam.eu/altgr-intl/

- a guide proposing to change xkb conf files directly in the system

https://michal.kosmulski.org/computing/articles/custom-keyboard-layouts-xkb.html

- a site that suggest to uphold the 11th commandment was "thou shalt not 
edit things in /usr/share"

https://www.choam.eu/altgr-intl/ <https://www.choam.eu/altgr-intl/>

Alexandros





More information about the xorg mailing list