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/X11R6/lib/X11/xkb.
USING WITH xkbcomp
If you have an Xserver and a client shell running on different computers and XKB configuration files sets on those machines are different you can get problems specifying a keyboard map by model, layout, options names. The thing is the
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
xkbcomp 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 running the
xkbcomp on the client side too. With the
-print option
setxkbmap just prints the files names in an appropriate format to its stdout and this output can be piped directly to the
xkbcomp input. For example, a command
setxkbmap us -print | xkbcomp - $DISPLAY
makes both step on the same (client) machine and loads a keyboard map into the server.