CKBCOMP(1)
๐ CKBCOMP(1) ๐
Console-setup User's Manual, okay, the bible for this one ๐
โจ NAME โจ
ckbcomp โ compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol ๐
๐ธ SYNOPSIS ๐ธ
ckbcomp [OPTION...] [XKBLAYOUT [XKBVARIANT [XKBOPTIONS]...]]
๐ DESCRIPTION ๐
okay so the ckbcomp keymap compiler takes a description of an XKB keyboard layout and turns it into a console keymap. That console keymap can be read straight in by loadkeys(1) or kbdcontrol(1) ๐ฆ
On its standard output, ckbcomp dumps the generated keyboard definition โจ The biggest difference between the arguments of setxkbmap(1) and the arguments of ckbcomp is the extra parameter -charmap, which you use when you want a non-Unicode keyboard map ๐ซถ Without -charmap, ckbcomp makes a Unicode keyboard, so no stress ๐
๐ฆ OPTIONS ๐ฆ
๐ General options
-?,-helpโ prints a usage message and exits ๐-charmap charmapโ the encoding to use for the output keymap. There should be a character mapping table defining this encoding in/usr/share/consoletrans. The charmaps that come pre-made are: ARMSCII-8, CP1251, CP1255, CP1256, GEORGIAN-ACADEMY, GEORGIAN-PS, IBM1133, ISIRI-3342, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, KOI8-R, KOI8-U, TIS-620 and VISCII ๐-Idirโ look in the top-level directorydirfor files included by the keymap description. You can use this option multiple times ๐ง If a file can't be found in any of the directories you gave, it'll also get searched in some other standard spots, like/etc/console-setup/ckb,/usr/share/X11/xkband/etc/X11/xkb๐-v levelโ sets how much detail gets listed. Thelevelargument has to be a number from 1 to 10 ๐-compactโ generates a compact keymap with at most two xkb groups and two levels in each, or only one xkb group with up to four levels ๐-freebsdโ generates a keymap for FreeBSD ๐-backspace [bs|del]โ decides how the <BackSpace> and <Delete> keys behave. The valuebsgives you VT100-conformant behaviour: <BackSpace> generates^H(ASCII BS) and <Delete> generates^?(ASCII DEL). The valuedelgives you VT220-conformant behavior: <BackSpace> generates^?(ASCII DEL) and <Delete> generates a special function sequence ๐
๐ XKB Keyboard Description
the keyboard layout, variant and options parts can also be set directly on the command line. Check the synopsis to see how ๐
-symbols nameโ sets the symbols component name of the XKB keyboard description โจ-keycodes nameโ sets the keycodes component name of the XKB keyboard description ๐ธ-rules nameโ the name of the rules file to use ๐-model nameโ sets the keyboard model used to choose the component names ๐น-layout nameโ sets the layout used to choose the component names ๐-variant nameโ sets the layout variant used to choose the component names ๐ฆ-option nameโ adds an option used to choose component names ๐
๐ FILES ๐
/usr/share/consoletrans/etc/console-setup/ckb/usr/share/X11/xkb/etc/X11/xkb
โ ๏ธ NOTES โ ๏ธ
bestie, read this one carefully ๐ญ If the option-freebsdis used together with-backspace del, then the key <Delete> will generate the special codefkey70. It is your responsibility to assign the appropriate sequence to this special code by using the following command:
kbdcontrol -f 70 "`printf '\033[3~'`"
๐ SEE ALSO ๐
keyboard(5), setxkbmap(1) ๐ซถ
Okay that's the whole tea, bestie ๐ console-setup, 2011-03-17, CKBCOMP(1) ๐ฆ๐โจ
๐ฆ where this page comes from
- debian bookworm: console-setup-mini 1.221
- debian trixie: console-setup-mini 1.242~deb13u1
- ubuntu jammy: console-setup-mini 1.205ubuntu3
- ubuntu noble: console-setup-mini 1.226ubuntu1
- ubuntu noble: console-setup-mini 1.226ubuntu1.1
- ubuntu questing: console-setup-mini 1.237ubuntu1
- ubuntu resolute: console-setup-mini 1.237ubuntu3
- ubuntu resolute: console-setup-mini 1.237ubuntu3.1
- ubuntu stonking: console-setup-mini 1.248ubuntu3
- Copyright (C) 2007, 2011 Anton Zinoviev <anton@lml.bas.bg>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms