xenocara/app/setxkbmap/man/setxkbmap.man

145 lines
5.1 KiB
Groff
Raw Normal View History

2006-11-25 13:07:29 -07:00
.\"
2007-09-12 05:08:59 -06:00
.TH SETXKBMAP __appmansuffix__ __xorgversion__
2006-11-25 13:07:29 -07:00
.SH NAME
setxkbmap
\- set the keyboard using the X Keyboard Extension
.SH SYNOPSIS
.B setxkbmap [
.I args
.B ] [
.I layout
.B [
.I variant
.B [
.I option ...
.B ] ] ]
.SH DESCRIPTION
The
.B setxkbmap
command maps the keyboard to use the layout determined by the options
specified on the command line.
.P
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
2007-09-12 05:08:59 -06:00
.IR __xkbconfigroot__ .
2006-11-25 13:07:29 -07:00
.SH OPTIONS
.TP 8
.B \-compat \fIname\fP
Specifies the name of the compatibility map component used to construct
a keyboard layout.
.TP 8
.B \-config \fIfile\fP
Specifies the name of an XKB configuration file which describes the
keyboard to be used.
.TP 8
2007-09-12 05:08:59 -06:00
.B \-device \fIdevice\fP
2012-04-07 09:24:43 -06:00
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
2007-09-12 05:08:59 -06:00
the X server is updated.
.TP 8
2006-11-25 13:07:29 -07:00
.B \-display \fIdisplay\fP
Specifies the display to be updated with the new keyboard layout.
.TP 8
.B \-geometry \fIname\fP
Specifies the name of the geometry component used to construct
a keyboard layout.
.TP 8
2015-05-10 03:54:49 -06:00
.B \-help
Prints a message describing the valid input to \fIsetxkbmap\fP.
.TP 8
2007-09-12 05:08:59 -06:00
.B \-I \fIdirectory\fP
Adds a directory to the list of directories to be used to search for
specified layout or rules files.
.TP 8
.B \-keycodes \fIname\fP
Specifies the name of the keycodes component used to construct
a keyboard layout.
.TP 8
2006-11-25 13:07:29 -07:00
.B \-keymap \fIname\fP
Specifies the name of the keymap description used to construct
a keyboard layout.
.TP 8
.B \-layout \fIname\fP
Specifies the name of the layout used to determine the components which
2012-04-07 09:24:43 -06:00
make up the keyboard description. The \fI-layout\fP option may only be used
once. Multiple layouts can be specified as a comma-separated list.
2006-11-25 13:07:29 -07:00
.TP 8
.B \-model \fIname\fP
2012-04-07 09:24:43 -06:00
Specifies the name of the keyboard model used to determine the components
2006-11-25 13:07:29 -07:00
which make up the keyboard description. Only one model may be specified
on the command line.
.TP 8
.B \-option \fIname\fP
2012-04-07 09:24:43 -06:00
Specifies the name of an option to determine the components which make up
2006-11-25 13:07:29 -07:00
the keyboard description; multiple options may be specified, one per
\fI-option\fP flag. Note that
.B setxkbmap
2012-04-07 09:24:43 -06:00
adds options specified in the command line to the options that were set
2007-09-12 05:08:59 -06:00
before (as saved in root window properties). If you want to replace all
2012-04-07 09:24:43 -06:00
previously specified options, use the \fI-option\fP flag with an empty
2007-09-12 05:08:59 -06:00
argument first.
2006-11-25 13:07:29 -07:00
.TP 8
.B \-print
2010-10-05 23:43:08 -06:00
With this option \fBsetxkbmap\fP just prints component names in a format
2007-09-12 05:08:59 -06:00
acceptable by \fBxkbcomp\fP (an XKB keymap compiler) and exits. The option
can be used for tests instead of a verbose option and in cases when one needs
2006-11-25 13:07:29 -07:00
to run both the \fBsetxkbmap\fP and the \fBxkbcomp\fP in chain (see below).
.TP 8
2010-10-05 23:43:08 -06:00
.B \-query
With this option \fBsetxkbmap\fP just prints the current rules, model,
layout, variant, and options, then exits.
.TP 8
2006-11-25 13:07:29 -07:00
.B \-rules \fIfile\fP
2007-09-12 05:08:59 -06:00
Specifies the name of the rules file used to resolve the requested layout
2006-11-25 13:07:29 -07:00
and model to a set of component names.
.TP 8
.B \-symbols \fIname\fP
Specifies the name of the symbols component used to construct
a keyboard layout.
.TP 8
.B \-synch
Force synchronization for X requests.
.TP 8
.B \-types \fIname\fP
Specifies the name of the types component used to construct
a keyboard layout.
.TP 8
.B \-variant \fIname\fP
2012-04-07 09:24:43 -06:00
Specifies which variant of the keyboard layout should be used to determine
the components which make up the keyboard description. The \fI-variant\fP
option may only be used once. Multiple variants can be specified as a
comma-separated list and will be matched with the layouts specified with
\fI-layout\fP.
2007-09-12 05:08:59 -06:00
.TP 8
.B \-verbose|\-v [\fIlevel\fP]
2012-04-07 09:24:43 -06:00
Specifies level of verbosity in output messages. Valid levels range from
0 (least verbose) to 10 (most verbose). The default verbosity level is 5.
If no level is specified, each \fI-v\fP or \fI-verbose\fP flag raises the
2007-09-12 05:08:59 -06:00
level by 1.
2015-05-10 03:54:49 -06:00
.TP 8
.B \-version
Prints the program's version number.
2006-11-25 13:07:29 -07:00
.SH USING WITH xkbcomp
If you have an Xserver and a client shell running on different computers and
2015-05-10 03:54:49 -06:00
some XKB configuration files on those machines are different, you can get
problems specifying a keyboard map by model, layout, and options names.
This is because \fBsetxkbmap\fP converts its arguments to names of XKB
configuration files according to files that are on the client-side computer,
then sends these file names to the server where \fBxkbcomp\fP has to
2006-11-25 13:07:29 -07:00
compose a complete keyboard map using files which the server has.
2015-05-10 03:54:49 -06:00
Thus if the sets of files differ in some way, the names that
2006-11-25 13:07:29 -07:00
\fBsetxkbmap\fP generates can be unacceptable on the server side. You can
2007-09-12 05:08:59 -06:00
solve this problem by running the \fBxkbcomp\fP on the client side too.
With the \fI-print\fP option \fBsetxkbmap\fP just prints the file names
2006-11-25 13:07:29 -07:00
in an appropriate format to its stdout and this output can be piped
2015-05-10 03:54:49 -06:00
directly to the \fBxkbcomp\fP input. For example, the command
2006-11-25 13:07:29 -07:00
\fBsetxkbmap us -print | xkbcomp - $DISPLAY\fP
2007-09-12 05:08:59 -06:00
makes both steps run on the same (client) machine and loads a keyboard map into
2006-11-25 13:07:29 -07:00
the server.
.SH SEE ALSO
2012-04-07 09:24:43 -06:00
xkbcomp(__appmansuffix__), xkeyboard-config(__miscmansuffix__)
2006-11-25 13:07:29 -07:00
.SH FILES
2007-09-12 05:08:59 -06:00
.I __xkbconfigroot__