weston.ini.man: document cursor-theme and cursor-key
[profile/ivi/weston-ivi-shell.git] / man / weston.ini.man
1 .\" shorthand for double quote that works everywhere.
2 .ds q \N'34'
3 .TH weston.ini 5 "2013-01-17" "Weston __version__"
4 .SH NAME
5 weston.ini \- configuration file for
6 .B Weston
7 \- the reference Wayland
8 compositor
9 .SH INTRODUCTION
10 .B Weston
11 obtains configuration from its command line parameters and the configuration
12 file described here.
13 .SH DESCRIPTION
14 .B Weston
15 uses a configuration file called
16 .I weston.ini
17 for its setup.
18 The
19 .I weston.ini
20 configuration file is searched for in one of the following places when the
21 server is started:
22 .PP
23 .RS 4
24 .nf
25 .BR "$XDG_CONFIG_HOME/weston.ini   " "(if $XDG_CONFIG_HOME is set)"
26 .BR "$HOME/.config/weston.ini      " "(if $HOME is set)"
27 .BR "<current dir>/weston.ini      " "(if both variables were not set)"
28 .fi
29 .RE
30 .PP
31 where environment variable
32 .B $HOME
33 is the user's home directory, and
34 .B $XDG_CONFIG_HOME
35 is the user specific configuration directory.
36 .PP
37 The
38 .I weston.ini
39 file is composed of a number of sections which may be present in any order, or
40 omitted to use default configuration values. Each section has the form:
41 .PP
42 .RS 4
43 .nf
44 .BI [ SectionHeader ]
45 .RI Key1=Value1
46 .RI Key2=Value2
47     ...
48 .fi
49 .RE
50 .PP
51 The spaces are significant.
52 Comment lines are ignored:
53 .PP
54 .RS 4
55 .nf
56 .IR "#comment"
57 .fi
58 .RE
59 .PP
60 The section headers are:
61 .PP
62 .RS 4
63 .nf
64 .BR "core           " "The core modules"
65 .BR "shell          " "Desktop customization"
66 .BR "launcher       " "Add launcher to the panel"
67 .BR "screensaver    " "Screensaver selection"
68 .BR "output         " "Output configuration"
69 .BR "input-method   " "Onscreen keyboard input"
70 .BR "keyboard       " "Keyboard layouts"
71 .BR "terminal       " "Terminal application options"
72 .fi
73 .RE
74 .PP
75 Possible value types are string, signed and unsigned 32-bit
76 integer, and boolean. Strings must not be quoted, do not support any
77 escape sequences, and run till the end of the line. Integers can
78 be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
79 (e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
80 .RE
81 .SH "CORE SECTION"
82 The
83 .B core
84 section is used to select the startup compositor modules.
85 .TP 7
86 .BI "modules=" desktop-shell.so,xwayland.so
87 specifies the modules to load (string). Available modules in the
88 .IR "__weston_modules_dir__"
89 directory are:
90 .PP
91 .RS 10
92 .nf
93 .BR desktop-shell.so
94 .BR tablet-shell.so
95 .BR xwayland.so
96 .fi
97 .RE
98 .RS
99 .PP
100
101 .SH "SHELL SECTION"
102 The
103 .B shell
104 section is used to customize the compositor. Some keys may not be handled by
105 different shell plugins.
106 .PP
107 The entries that can appear in this section are:
108 .TP 7
109 .BI "background-image=" file
110 sets the path for the background image file (string).
111 .TP 7
112 .BI "background-color=" 0xAARRGGBB
113 sets the color of the background (unsigned integer). The hexadecimal
114 digit pairs are in order alpha, red, green, and blue.
115 .TP 7
116 .BI "panel-color=" 0xAARRGGBB
117 sets the color of the panel (unsigned integer). The hexadecimal
118 digit pairs are in order transparency, red, green, and blue. Examples:
119 .PP
120 .RS 10
121 .nf
122 .BR "0xffff0000    " "Red"
123 .BR "0xff00ff00    " "Green"
124 .BR "0xff0000ff    " "Blue"
125 .BR "0x00ffffff    " "Fully transparent"
126 .fi
127 .RE
128 .TP 7
129 .BI "locking=" true
130 enables screen locking (boolean).
131 .TP 7
132 .BI "animation=" zoom
133 sets the effect used for opening new windows (string). Can be
134 .B zoom,
135 .B fade.
136 Otherwise, no animation is used.
137 .TP 7
138 .BI "binding-modifier=" ctrl
139 sets the modifier key used for common bindings (string), such as moving
140 surfaces, resizing, rotating, switching, closing and setting the transparency
141 for windows, controlling the backlight and zooming the desktop. Possible values:
142 ctrl, alt, super (default)
143 .TP 7
144 .BI "num-workspaces=" 6
145 defines the number of workspaces (unsigned integer). The user can switch
146 workspaces by using the
147 binding+F1, F2 keys. If this key is not set, fall back to one workspace.
148 .TP 7
149 .BI "cursor-theme=" theme
150 sets the cursor theme (string).
151 .TP 7
152 .BI "cursor-size=" 24
153 sets the cursor size (unsigned integer).
154 .TP 7
155 .BI "lockscreen-icon=" path
156 sets the path to lock screen icon image (string). (tablet shell only)
157 .TP 7
158 .BI "lockscreen=" path
159 sets the path to lock screen background image (string). (tablet shell only)
160 .TP 7
161 .BI "homescreen=" path
162 sets the path to home screen background image (string). (tablet shell only)
163 .RE
164 .SH "LAUNCHER SECTION"
165 There can be multiple launcher sections, one for each launcher.
166 .TP 7
167 .BI "icon=" icon
168 sets the path to icon image (string). Svg images are not currently supported.
169 .TP 7
170 .BI "path=" program
171 sets the path to the program that is run by clicking on this launcher (string).
172 It is possible to pass arguments and environment variables to the program. For
173 example:
174 .nf
175 .in +4n
176
177 path=GDK_BACKEND=wayland gnome-terminal --full-screen
178 .in
179 .fi
180 .PP
181 .RE
182 .SH "SCREENSAVER SECTION"
183 The
184 .B screensaver
185 section is used to select and schedule a screensaver.
186 The
187 .B screensaver
188 section is optional, as are all of the entries that may be specified in
189 it.
190 .TP 7
191 .BI "path=" /usr/libexec/weston-screensaver
192 This instructs the compositor to use the selected screensaver client on a given
193 path (string). If this line is missing or commented out, the screensaver in
194 .B "weston(1)"
195 is disabled.
196 .RE
197 .TP 7
198 .BI "duration=" 600
199 The idle time in seconds until the screensaver disappears in order to save power
200 (unsigned integer).
201 .SH "OUTPUT SECTION"
202 There can be multiple output sections, each corresponding to one output. It is
203 currently only recognized by the drm and x11 backends.
204 .TP 7
205 .BI "name=" name
206 sets a name for the output (string). The backend uses the name to
207 identify the output. All X11 output names start with a letter X. The available
208 output names for DRM backend are listed in the
209 .B "weston-launch(1)"
210 output.
211 Examples of usage:
212 .PP
213 .RS 10
214 .nf
215 .BR "LVDS1    " "DRM backend, Laptop internal panel no.1"
216 .BR "VGA1     " "DRM backend, VGA connector no.1"
217 .BR "X1       " "X11 backend, X window no.1"
218 .fi
219 .RE
220 .RS
221 .PP
222 See
223 .B "weston-drm(7)"
224 for more details.
225 .RE
226 .TP 7
227 .BI "mode=" mode
228 sets the output mode (string). The mode parameter is handled differently
229 depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
230 the weston window.
231 The DRM backend accepts different modes:
232 .PP
233 .RS 10
234 .nf
235 .BR "WIDTHxHEIGHT    " "Resolution size width and height in pixels"
236 .BR "preferred       " "Uses the preferred mode"
237 .BR "current         " "Uses the current crt controller mode"
238 .BR "off             " "Disables the output"
239 .fi
240 .RE
241 .RS
242 .PP
243 Optionally, an user may specify a modeline, such as:
244 .PP
245 .nf
246 .in +4n
247 .nf
248 173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
249 .fi
250 .in
251 .PP
252 It consists of the refresh rate in Hz, horizontal and vertical resolution,
253 options for horizontal and vertical synchronisation. The program
254 .B "cvt(1)"
255 can provide suitable modeline string.
256 .RE
257 .TP 7
258 .BI "transform=" normal
259 The transformation applied to screen output (string). The transform key can
260 be one of the following 8 strings:
261 .PP
262 .RS 10
263 .nf
264 .BR  "normal        " "Normal output."
265 .BR  "90            " "90 degrees clockwise."
266 .BR  "180           " "Upside down."
267 .BR  "270           " "90 degrees counter clockwise."
268 .BR  "flipped       " "Horizontally flipped"
269 .BR  "flipped-90    " "Flipped and 90 degrees clockwise"
270 .BR  "flipped-180   " "Flipped upside down"
271 .BR  "flipped-270   " "Flipped and 90 degrees counter clockwise"
272 .fi
273 .RE
274 .SH "INPUT-METHOD SECTION"
275 .TP 7
276 .BI "path=" "/usr/libexec/weston-keyboard"
277 sets the path of the on screen keyboard input method (string).
278 .RE
279 .RE
280 .SH "KEYBOARD SECTION"
281 This section contains the following keys:
282 .TP 7
283 .BI "keymap_rules=" "evdev"
284 sets the keymap rules file (string). Used to map layout and model to input
285 device.
286 .RE
287 .RE
288 .TP 7
289 .BI "keymap_model=" "pc105"
290 sets the keymap model (string). See the Models section in
291 .B "xkeyboard-config(7)."
292 .RE
293 .RE
294 .TP 7
295 .BI "keymap_layout=" "us,de,gb"
296 sets the comma separated list of keyboard layout codes (string). See the
297 Layouts section in
298 .B "xkeyboard-config(7)."
299 .RE
300 .RE
301 .TP 7
302 .BI "keymap_variant=" "euro,,intl"
303 sets the comma separated list of keyboard layout variants (string). The number
304 of variants must be the same as the number of layouts above. See the Layouts
305 section in
306 .B "xkeyboard-config(7)."
307 .RE
308 .RE
309 .TP 7
310 .BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
311 sets the keymap options (string). See the Options section in
312 .B "xkeyboard-config(7)."
313 .RE
314 .RE
315 .SH "TERMINAL SECTION"
316 Contains settings for the weston terminal application (weston-terminal). It
317 allows to customize the font and shell of the command line interface.
318 .TP 7
319 .BI "font=" "DejaVu Sans Mono"
320 sets the font of the terminal (string). For a good experience it is recommend
321 to use monospace fonts. In case the font is not found, the default one is used.
322 .RE
323 .RE
324 .TP 7
325 .BI "font-size=" "14"
326 sets the size of the terminal font (unsigned integer).
327 .RE
328 .RE
329 .TP 7
330 .BI "term=" "xterm-256color"
331 The terminal shell (string). Sets the $TERM variable.
332 .RE
333 .RE
334 .SH "SEE ALSO"
335 .BR weston (1),
336 .BR weston-launch (1),
337 .BR weston-drm (7),
338 .BR xkeyboard-config (7)