Skip to content

Allow to convert xkb keymap to kernel keymap

Alexey Gladkov kbd 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add keymap generation from the xkb databaseconfigure.ac src/Makefile.am src/loadkeys.c +3 more+613 -90 replies
2/4xkbsupport: Create a list of used codessrc/xkbsupport.c+47 -30 replies
3/4xkbsupport: Extract translation tabledata/xkbtrans/names src/xkbsupport.c+251 -790 replies
4/4xkbsupport: Add xkb composesrc/loadkeys.c src/xkbsupport.c src/xkbsupport.h+145 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Allow to convert xkb keymap to kernel keymap

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
Signature · 1 line
2.43.0