[PATCH 0/4] Allow to convert xkb keymap to kernel keymap
Alexey Gladkov <[email protected]> Thu, 4 Jan 2024 18:15:14 +0000
| Newsgroups | dev.linux.lists.kbd |
|---|---|
| Message-ID | <[email protected]> |
This patchset adds the ability to use keymaps from libxkbcommon. It gives the loadkeys utility additional options for passing xkb-specific parameters. The idea is to make it possible to unify the keymap configuration between linux console and xorg/wayland and unification of the keymaps configuration method. Unfortunately, we cannot use xkb keymap one to one. The linux kernel has a number of limitations that allow the use of xkb keymaps. Many thanks to Anton Zinoviev who helped me figure out how console-setup solved the problems of converting xkb to linux keymaps. Alexey Gladkov (4): Add keymap generation from the xkb database xkbsupport: Create a list of used codes xkbsupport: Extract translation table xkbsupport: Add xkb compose configure.ac | 10 + data/xkbtrans/names | 154 ++++++++++ src/Makefile.am | 6 + src/loadkeys.c | 80 ++++- src/loadkeys.h | 13 + src/xkbsupport.c | 693 ++++++++++++++++++++++++++++++++++++++++++++ src/xkbsupport.h | 18 ++ 7 files changed, 965 insertions(+), 9 deletions(-) create mode 100644 data/xkbtrans/names create mode 100644 src/loadkeys.h create mode 100644 src/xkbsupport.c create mode 100644 src/xkbsupport.h -- 2.43.0