# XKBCOMP(1) - man - phpMan

[XKBCOMP(1)](https://www.chedong.com/phpMan.php/man/XKBCOMP/1/markdown)                             General Commands Manual                            [XKBCOMP(1)](https://www.chedong.com/phpMan.php/man/XKBCOMP/1/markdown)



## NAME
       xkbcomp - compile XKB keyboard description

## SYNOPSIS
       **xkbcomp** [option] source [ destination ]

## DESCRIPTION
       The  _xkbcomp_ keymap compiler converts a description of an XKB keymap into one of several out‐
       put formats.   The most common use for xkbcomp is to create a compiled keymap file (.xkm  ex‐
       tension)  which can be read directly by XKB-capable X servers or utilities.   The keymap com‐
       piler can also produce C header files or XKB source files.  The C header  files  produced  by
       xkbcomp  can  be included by X servers or utilities that need a built-in default keymap.  The
       XKB source files produced by _xkbcomp_ are fully resolved and can be used to  verify  that  the
       files  which  typically make up an XKB keymap are merged correctly or to create a single file
       which contains a complete description of the keymap.

       The _source_ may specify an X display, or an _.xkb_ or _.xkm_ file;  unless  explicitly  specified,
       the  format  of  _destination_  depends on the format of the source.   Compiling a _.xkb_ (keymap
       source) file generates a _.xkm_ (compiled keymap file) by default.   If the source  is  a  _.xkm_
       file or an X display, _xkbcomp_ generates a keymap source file by default.

       If  the  _destination_ is an X display, the keymap for the display is updated with the compiled
       keymap.

       The name of the _destination_ is usually computed from the name of the source, with the  exten‐
       sion replaced as appropriate.  When compiling a single map from a file which contains several
       maps, _xkbcomp_ constructs the destination file name by appending an appropriate  extension  to
       the name of the map to be used.

## OPTIONS
### -a
               ment.  Only affects _.xkb_ format output.

### -C

### -dflts

### -em1
               Print _msg_ before printing first error message.

### -emp
               Print _msg_ at the start of each message line.

### -eml
               If there were any errors, print _msg_ before exiting.

### -help, -?
               Show available options.

### -I
               scription.   After  all  directories  specified by -I options have been searched, the
               current directory and finally, the default xkb directory /usr/share/X11/xkb  will  be
               searched.

               To prevent the current and default directories from being searched, use the -I option
               alone (i.e. without a directory), before any -I options that specify the  directories
               you do want searched.

### -i
               If  _source_  or _destination_ is a valid X display, load the keymap from/into the device
               with the specified ID (not name).

### -l
               implemented yet).

### -m

### -merge

### -o
               source file with an appropriate extension for the output format.

### -opt
               Specifies a list of optional parts.  Compilation errors in any optional parts are not
               fatal.   Parts may consist of any combination of the letters _c_, _g_,_k_,_s_,_t_ which specify
               the compatibility map, geometry, keycodes, symbols and types, respectively.

### -R

### -synch

### -version
               Print version number.

### -w
               all warnings; a warning level of 10 enables them all.

### -xkb

### -xkm

## SEE ALSO
       [X(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown)

## COPYRIGHT
       Copyright 1994, Silicon Graphics Computer Systems and X Consortium, Inc.
       See [_X(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown)_ for a full statement of rights and permissions.

## AUTHOR
       Erik Fortune, Silicon Graphics



X Version 11                                xkbcomp 1.4.3                                 [XKBCOMP(1)](https://www.chedong.com/phpMan.php/man/XKBCOMP/1/markdown)
