Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #128
Difficulty: Easy
Generally speaking, most of the software included in a Linux distro is free and open source.
True or False?
Linux & Unix Commands - Search Man Pages

ckbcomp(1) [bsd man page]

CKBCOMP(1)						    Console-setup User's Manual 						CKBCOMP(1)

NAME
ckbcomp - compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol SYNOPSIS
ckbcomp [OPTION...] [XKBLAYOUT [XKBVARIANT [XKBOPTIONS]...]] DESCRIPTION
The ckbcomp keymap compiler converts a description of an XKB keyboard layout into a console keymap that can be read directly by loadkeys(1) or kbdcontrol(1). On its standard output ckbcomp dumps the generated keyboard definition. The most important difference between the arguments of setxkbmap(1) and the arguments of ckbcomp is the additional parameter -charmap when non-Unicode keyboard map is wanted. Without -charmap ckbcomp will generate Unicode keyboard. OPTIONS
General options -?,-help Print a usage message and exit. -charmap charmap The encoding to use for the output keymap. There should be an character mapping table defining this encoding in /usr/share/console- trans. Definitions of the following charmaps are provided: 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 directory dir for files included by the keymap description. This option may be used multiple times. If a file can not be found in any of the specified directories, it will be searched also in some other standard locations, such as /etc/console-setup/ckb, /usr/share/X11/xkb and /etc/X11/xkb -v level Set level of detail for listing. The argument level must be a number from 1 to 10. -compact Generate a compact keymap with at most two xkb groups and two levels in each or only one xkb-group and up to four levels. -freebsd Generate a keymap for FreeBSD. -backspace [bs|del] Specifies the behaviour of the <BackSpace> and <Delete> keys. Value bs specifies VT100-conformant behaviour: <BackSpace> will gener- ate ^H (ASCII BS) and <Delete> will generate ^? (ASCII DEL). Value del specifies VT220-conformant behavior: <BackSpace> will gen- erate ^? (ASCII DEL) and <Delete> will generate a special function sequence. XKB Keyboard Description The keyboard layout, variant and options components can be also specified directly on the command line. See the synopsis of the command. -symbols name Specifies the symbols component name of the XKB keyboard description. -keycodes name Specifies the keycodes component name of the XKB keyboard description. -rules name The name of the rules file to use. -model name Specifies the keyboard model used to choose the component names. -layout name Specifies the layout used to choose the component names. -variant name Specifies 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
If the option -freebsd is used together with -backspace del, then the key <Delete> will generate the special code fkey70. It is your re- sponsibility to assign the appropriate sequence to this special code by using the following command: kbdcontrol -f 70 "`printf '33[3~'`" SEE ALSO
keyboard(5), setxkbmap(1) console-setup 2011-03-17 CKBCOMP(1)

Check Out this Related Man Page

SETXKBMAP(1)						      General Commands Manual						      SETXKBMAP(1)

NAME
setxkbmap - set the keyboard using the X Keyboard Extension SYNOPSIS
setxkbmap [ args ] [ layout [ variant [ option ... ] ] ] DESCRIPTION
The setxkbmap command maps the keyboard to use the layout determined by the options specified on the command line. An XKB keymap is constructed from a number of components which are compiled only as needed. The source for all of the components can be found in /usr/local/share/X11/xkb. OPTIONS
-help Prints a message describing the valid input to setxkbmap. -compat name Specifies the name of the compatibility map component used to construct a keyboard layout. -config file Specifies the name of an XKB configuration file which describes the keyboard to be used. -device device Specifies the numeric device id of the input device to be updated with the new keyboard layout. If not specified, the core keyboard device of the X server is updated. -display display Specifies the display to be updated with the new keyboard layout. -geometry name Specifies the name of the geometry component used to construct a keyboard layout. -I directory Adds a directory to the list of directories to be used to search for specified layout or rules files. -keycodes name Specifies the name of the keycodes component used to construct a keyboard layout. -keymap name Specifies the name of the keymap description used to construct a keyboard layout. -layout name Specifies the name of the layout used to determine the components which make up the keyboard description. Only one layout may be specified on the command line. -model name Specifies the name of the keyboard model used to determine the components which make up the keyboard description. Only one model may be specified on the command line. -option name Specifies the name of an option to determine the components which make up the keyboard description; multiple options may be speci- fied, one per -option flag. Note that setxkbmap adds options specified in the command line to the options that were set before (as saved in root window properties). If you want to replace all previously specified options, use the -option flag with an empty argu- ment first. -print With this option the setxkbmap just prints component names in a format acceptable by xkbcomp (an XKB keymap compiler) and exits. The option can be used for tests instead of a verbose option and in cases when one needs to run both the setxkbmap and the xkbcomp in chain (see below). -rules file Specifies the name of the rules file used to resolve the requested layout and model to a set of component names. -symbols name Specifies the name of the symbols component used to construct a keyboard layout. -synch Force synchronization for X requests. -types name Specifies the name of the types component used to construct a keyboard layout. -variant name Specifies which variant of the keyboard layout should be used to determine the components which make up the keyboard description. Only one variant may be specified on the command line. -verbose|-v [level] Specifies level of verbosity in output messages. Valid levels range from 0 (least verbose) to 10 (most verbose). The default ver- bosity level is 5. If no level is specified, each -v or -verbose flag raises the level by 1. USING WITH xkbcomp If you have an Xserver and a client shell running on different computers and XKB configuration files on those machines are different you can get problems specifying a keyboard map by model, layout, options names. This is because setxkbcomp converts these names to names of XKB configuration files according to files that are on the client side computer, then it sends the file names to the server where the xkb- comp has to compose a complete keyboard map using files which the server has. Thus if the sets of files differ significantly the names that the setxkbmap generates can be unacceptable on the server side. You can solve this problem by running the xkbcomp on the client side too. With the -print option setxkbmap just prints the file names in an appropriate format to its stdout and this output can be piped directly to the xkbcomp input. For example, the command setxkbmap us -print | xkbcomp - $DISPLAY makes both steps run on the same (client) machine and loads a keyboard map into the server. SEE ALSO
xkbcomp(1) FILES
/usr/local/share/X11/xkb X Version 11 setxkbmap 1.0.4 SETXKBMAP(1)

Featured Tech Videos