-compatname
Specifies the name of the compatibility map component used to construct a keyboard layout.
-configfile
Specifies the name of an XKB configuration file which describes the keyboard to be used.
-devicedevice
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.
-displaydisplay
Specifies the display to be updated with the new keyboard layout.
-geometryname
Specifies the name of the geometry component used to construct a keyboard layout.
-help Prints a message describing the valid input to setxkbmap.
-Idirectory
Adds a directory to the list of directories to be used to search for specified layout or rules
files.
-keycodesname
Specifies the name of the keycodes component used to construct a keyboard layout.
-keymapname
Specifies the name of the keymap description used to construct a keyboard layout.
-layoutname
Specifies the name of the layout used to determine the components which make up the keyboard
description. The -layout option may only be used once. Multiple layouts can be specified as a
comma-separated list.
-modelname
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.
-optionname
Specifies the name of an option to determine the components which make up the keyboard
description; multiple options may be specified, 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 argument first.
-print With this option 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).
-query With this option setxkbmap just prints the current rules, model, layout, variant, and options,
then exits.
-rulesfile
Specifies the name of the rules file used to resolve the requested layout and model to a set of
component names.
-symbolsname
Specifies the name of the symbols component used to construct a keyboard layout.
-synch Force synchronization for X requests.
-typesname
Specifies the name of the types component used to construct a keyboard layout.
-variantname
Specifies which variant of the keyboard layout should be used to determine the components which
make up the keyboard description. The -variant 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
-layout.
-verbose|-v[level]
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 -v or -verbose
flag raises the level by 1.
-version
Prints the program's version number.