~ubuntu-branches/ubuntu/saucy/x11-xkb-utils/saucy-proposed

« back to all changes in this revision

Viewing changes to setxkbmap/man/setxkbmap.man

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2012-04-30 20:40:11 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120430204011-5oamjlu42ndx1w4f
Tags: 7.7~1
* setxkbmap 1.3 0
* xkbcomp 1.2.4
* Don't use dh_testroot in debian/rules clean.
* xkbevd 1.1.3
* Bump x11proto-core-dev build-dep to 7.0.17.
* Tell dh_install to ignore xkbcomp.pc, nothing uses that AFAIK.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"
 
2
.TH SETXKBMAP __appmansuffix__ __xorgversion__
 
3
.SH NAME
 
4
setxkbmap
 
5
\- set the keyboard using the X Keyboard Extension
 
6
.SH SYNOPSIS
 
7
.B setxkbmap [
 
8
.I args
 
9
.B ] [
 
10
.I layout
 
11
.B [
 
12
.I variant
 
13
.B [
 
14
.I option  ...
 
15
.B ] ] ]
 
16
.SH DESCRIPTION
 
17
The
 
18
.B setxkbmap
 
19
command maps the keyboard to use the layout determined by the options
 
20
specified on the command line.
 
21
.P
 
22
An XKB keymap is constructed from a number of components which are compiled
 
23
only as needed.  The source for all of the components can be found in
 
24
.IR __xkbconfigroot__ .
 
25
.SH OPTIONS
 
26
.TP 8
 
27
.B \-help
 
28
Prints a message describing the valid input to \fIsetxkbmap\fP.
 
29
.TP 8
 
30
.B \-compat \fIname\fP
 
31
Specifies the name of the compatibility map component used to construct
 
32
a keyboard layout.
 
33
.TP 8
 
34
.B \-config \fIfile\fP
 
35
Specifies the name of an XKB configuration file which describes the
 
36
keyboard to be used.
 
37
.TP 8
 
38
.B \-device \fIdevice\fP
 
39
Specifies the numeric device id of the input device to be updated with
 
40
the new keyboard layout. If not specified, the core keyboard device of
 
41
the X server is updated.
 
42
.TP 8
 
43
.B \-display \fIdisplay\fP
 
44
Specifies the display to be updated with the new keyboard layout.
 
45
.TP 8
 
46
.B \-geometry \fIname\fP
 
47
Specifies the name of the geometry component used to construct
 
48
a keyboard layout.
 
49
.TP 8
 
50
.B \-I \fIdirectory\fP
 
51
Adds a directory to the list of directories to be used to search for
 
52
specified layout or rules files.
 
53
.TP 8
 
54
.B \-keycodes \fIname\fP
 
55
Specifies the name of the keycodes component used to construct
 
56
a keyboard layout.
 
57
.TP 8
 
58
.B \-keymap \fIname\fP
 
59
Specifies the name of the keymap description used to construct
 
60
a keyboard layout.
 
61
.TP 8
 
62
.B \-layout \fIname\fP
 
63
Specifies the name of the layout used to determine the components which
 
64
make up the keyboard description. The \fI-layout\fP option may only be used
 
65
once. Multiple layouts can be specified as a comma-separated list.
 
66
.TP 8
 
67
.B \-model \fIname\fP
 
68
Specifies the name of the keyboard model used to determine the components
 
69
which make up the keyboard description.  Only one model may be specified
 
70
on the command line.
 
71
.TP 8
 
72
.B \-option \fIname\fP
 
73
Specifies the name of an option to determine the components which make up
 
74
the keyboard description;  multiple options may be specified, one per
 
75
\fI-option\fP flag. Note that
 
76
.B setxkbmap
 
77
adds options specified in the command line to the options that were set
 
78
before (as saved in root window properties). If you want to replace all
 
79
previously specified options, use the \fI-option\fP flag with an empty
 
80
argument first.
 
81
.TP 8
 
82
.B \-print
 
83
With this option \fBsetxkbmap\fP just prints component names in a format
 
84
acceptable by \fBxkbcomp\fP (an XKB keymap compiler) and exits. The option
 
85
can be used for tests instead of a verbose option and in cases when one needs
 
86
to run both the \fBsetxkbmap\fP and the \fBxkbcomp\fP in chain (see below).
 
87
.TP 8
 
88
.B \-query
 
89
With this option \fBsetxkbmap\fP just prints the current rules, model,
 
90
layout, variant, and options, then exits.
 
91
.TP 8
 
92
.B \-rules \fIfile\fP
 
93
Specifies the name of the rules file used to resolve the requested layout
 
94
and model to a set of component names.
 
95
.TP 8
 
96
.B \-symbols \fIname\fP
 
97
Specifies the name of the symbols component used to construct
 
98
a keyboard layout.
 
99
.TP 8
 
100
.B \-synch
 
101
Force synchronization for X requests.
 
102
.TP 8
 
103
.B \-types \fIname\fP
 
104
Specifies the name of the types component used to construct
 
105
a keyboard layout.
 
106
.TP 8
 
107
.B \-variant \fIname\fP
 
108
Specifies which variant of the keyboard layout should be used to determine
 
109
the components which make up the keyboard description. The \fI-variant\fP
 
110
option may only be used once. Multiple variants can be specified as a
 
111
comma-separated list and will be matched with the layouts specified with
 
112
\fI-layout\fP.
 
113
.TP 8
 
114
.B \-verbose|\-v [\fIlevel\fP]
 
115
Specifies level of verbosity in output messages.  Valid levels range from
 
116
0 (least verbose) to 10 (most verbose).  The default verbosity level is 5.
 
117
If no level is specified, each \fI-v\fP or \fI-verbose\fP flag raises the
 
118
level by 1.
 
119
.SH USING WITH xkbcomp
 
120
If you have an Xserver and a client shell running on different computers and
 
121
XKB configuration files on those machines are different you can get
 
122
problems specifying a keyboard map by model, layout, options names.
 
123
This is because \fBsetxkbcomp\fP converts these names to names of XKB
 
124
configuration files according to files that are on the client side computer,
 
125
then it sends the file names to the server where the \fBxkbcomp\fP has to
 
126
compose a complete keyboard map using files which the server has.
 
127
Thus if the sets of files differ significantly the names that the
 
128
\fBsetxkbmap\fP generates can be unacceptable on the server side.  You can
 
129
solve this problem by running the \fBxkbcomp\fP on the client side too.
 
130
With the \fI-print\fP option \fBsetxkbmap\fP just prints the file names
 
131
in an appropriate format to its stdout and this output can be piped
 
132
directly to the \fBxkbcomp\fP input. For example, the command
 
133
 
 
134
\fBsetxkbmap us -print | xkbcomp - $DISPLAY\fP
 
135
 
 
136
makes both steps run on the same (client) machine and loads a keyboard map into
 
137
the server.
 
138
.SH SEE ALSO
 
139
xkbcomp(__appmansuffix__), xkeyboard-config(__miscmansuffix__)
 
140
.SH FILES
 
141
.I __xkbconfigroot__