1 .\" shorthand for double quote that works everywhere.
3 .TH weston.ini 5 "2013-01-17" "Weston __version__"
5 weston.ini \- configuration file for
7 \- the reference Wayland
11 obtains configuration from its command line parameters and the configuration
15 uses a configuration file called
20 configuration file is searched for in one of the following places when the
25 .BR "$XDG_CONFIG_HOME/weston.ini " "(if $XDG_CONFIG_HOME is set)"
26 .BR "$HOME/.config/weston.ini " "(if $HOME is set)"
27 .B "weston/weston.ini in each"
28 .BR "\ \ \ \ $XDG_CONFIG_DIR " "(if $XDG_CONFIG_DIRS is set)"
29 .BR "/etc/xdg/weston/weston.ini " "(if $XDG_CONFIG_DIRS is not set)"
30 .BR "<current dir>/weston.ini " "(if no variables were set)"
34 where environment variable
36 is the user's home directory, and
38 is the user specific configuration directory, and
42 delimited listed of configuration base directories, such as
43 .BR /etc/xdg-foo:/etc/xdg .
47 file is composed of a number of sections which may be present in any order, or
48 omitted to use default configuration values. Each section has the form:
59 The spaces are significant.
60 Comment lines are ignored:
68 The section headers are:
72 .BR "core " "The core modules"
73 .BR "shell " "Desktop customization"
74 .BR "launcher " "Add launcher to the panel"
75 .BR "screensaver " "Screensaver selection"
76 .BR "output " "Output configuration"
77 .BR "input-method " "Onscreen keyboard input"
78 .BR "keyboard " "Keyboard layouts"
79 .BR "terminal " "Terminal application options"
80 .BR "xwayland " "XWayland options"
84 Possible value types are string, signed and unsigned 32-bit
85 integer, and boolean. Strings must not be quoted, do not support any
86 escape sequences, and run till the end of the line. Integers can
87 be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
88 (e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
93 section is used to select the startup compositor modules.
95 .BI "shell=" desktop-shell.so
96 specifies a shell to load (string). This can be used to load your own
97 implemented shell or one with Weston as default. Available shells
99 .IR "__weston_modules_dir__"
109 .BI "modules=" xwayland.so,cms-colord.so
110 specifies the modules to load (string). Available modules in the
111 .IR "__weston_modules_dir__"
122 .BI "backend=" headless-backend.so
123 overrides defaults backend. Available backend modules in the
124 .IR "__weston_modules_dir__"
131 .BR headless-backend.so
134 .BR wayland-backend.so
138 .BI "gbm-format="format
139 sets the GBM format used for the framebuffer for the GBM backend. Can be
143 By default, xrgb8888 is used.
150 section is used to customize the compositor. Some keys may not be handled by
151 different shell plugins.
153 The entries that can appear in this section are:
156 sets the path for the shell client to run. If not specified
157 .I __weston_shell_client__
158 is launched (string).
160 .BI "background-image=" file
161 sets the path for the background image file (string).
163 .BI "background-type=" tile
164 determines how the background image is drawn (string). Can be
165 .BR scale ", " scale-crop " or " tile " (default)."
166 Scale means scaled to fit the output precisely, not preserving aspect ratio.
167 Scale-crop preserves aspect ratio, scales the background image just big
168 enough to cover the output, and centers it. The image ends up cropped from
169 left and right, or top and bottom, if the aspect ratio does not match the
170 output. Tile repeats the background image to fill the output.
172 .BI "background-color=" 0xAARRGGBB
173 sets the color of the background (unsigned integer). The hexadecimal
174 digit pairs are in order alpha, red, green, and blue.
176 .BI "panel-color=" 0xAARRGGBB
177 sets the color of the panel (unsigned integer). The hexadecimal
178 digit pairs are in order transparency, red, green, and blue. Examples:
182 .BR "0xffff0000 " "Red"
183 .BR "0xff00ff00 " "Green"
184 .BR "0xff0000ff " "Blue"
185 .BR "0x00ffffff " "Fully transparent"
190 enables screen locking (boolean).
192 .BI "animation=" zoom
193 sets the effect used for opening new windows (string). Can be
197 By default, no animation is used.
199 .BI "startup-animation=" fade
200 sets the effect used for opening new windows (string). Can be
203 By default, the fade animation is used.
205 .BI "focus-animation=" dim-layer
206 sets the effect used with the focused and unfocused windows. Can be
209 By default, no animation is used.
211 .BI "binding-modifier=" ctrl
212 sets the modifier key used for common bindings (string), such as moving
213 surfaces, resizing, rotating, switching, closing and setting the transparency
214 for windows, controlling the backlight and zooming the desktop. Possible values:
215 ctrl, alt, super (default)
217 .BI "num-workspaces=" 6
218 defines the number of workspaces (unsigned integer). The user can switch
219 workspaces by using the
220 binding+F1, F2 keys. If this key is not set, fall back to one workspace.
222 .BI "cursor-theme=" theme
223 sets the cursor theme (string).
225 .BI "cursor-size=" 24
226 sets the cursor size (unsigned integer).
228 .BI "lockscreen-icon=" path
229 sets the path to lock screen icon image (string). (tablet shell only)
231 .BI "lockscreen=" path
232 sets the path to lock screen background image (string). (tablet shell only)
234 .BI "homescreen=" path
235 sets the path to home screen background image (string). (tablet shell only)
237 .SH "LAUNCHER SECTION"
238 There can be multiple launcher sections, one for each launcher.
241 sets the path to icon image (string). Svg images are not currently supported.
244 sets the path to the program that is run by clicking on this launcher (string).
245 It is possible to pass arguments and environment variables to the program. For
250 path=GDK_BACKEND=wayland gnome-terminal --full-screen
255 .SH "SCREENSAVER SECTION"
258 section is used to select and schedule a screensaver.
261 section is optional, as are all of the entries that may be specified in
264 .BI "path=" /usr/libexec/weston-screensaver
265 This instructs the compositor to use the selected screensaver client on a given
266 path (string). If this line is missing or commented out, the screensaver in
272 The idle time in seconds until the screensaver disappears in order to save power
275 There can be multiple output sections, each corresponding to one output. It is
276 currently only recognized by the drm and x11 backends.
279 sets a name for the output (string). The backend uses the name to
280 identify the output. All X11 output names start with a letter X. All
281 Wayland output names start with the letters WL. The available
282 output names for DRM backend are listed in the
283 .B "weston-launch(1)"
289 .BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
290 .BR "VGA1 " "DRM backend, VGA connector no.1"
291 .BR "X1 " "X11 backend, X window no.1"
292 .BR "WL1 " "Wayland backend, Wayland window no.1"
303 sets the output mode (string). The mode parameter is handled differently
304 depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
306 The DRM backend accepts different modes:
310 .BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
311 .BR "preferred " "Uses the preferred mode"
312 .BR "current " "Uses the current crt controller mode"
313 .BR "off " "Disables the output"
318 Optionally, an user may specify a modeline, such as:
323 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
327 It consists of the refresh rate in Hz, horizontal and vertical resolution,
328 options for horizontal and vertical synchronisation. The program
330 can provide suitable modeline string.
333 .BI "transform=" normal
334 The transformation applied to screen output (string). The transform key can
335 be one of the following 8 strings:
339 .BR "normal " "Normal output."
340 .BR "90 " "90 degrees clockwise."
341 .BR "180 " "Upside down."
342 .BR "270 " "90 degrees counter clockwise."
343 .BR "flipped " "Horizontally flipped"
344 .BR "flipped-90 " "Flipped and 90 degrees clockwise"
345 .BR "flipped-180 " "Flipped upside down"
346 .BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
351 The logical seat name that that this output should be associated with. If this
352 is set then the seat's input will be confined to the output that has the seat
353 set on it. The expectation is that this functionality will be used in a
354 multiheaded environment with a single compositor for multiple output and input
355 configurations. The default seat is called "default" and will always be
356 present. This seat can be constrained like any other.
358 .SH "INPUT-METHOD SECTION"
360 .BI "path=" "/usr/libexec/weston-keyboard"
361 sets the path of the on screen keyboard input method (string).
364 .SH "KEYBOARD SECTION"
365 This section contains the following keys:
367 .BI "keymap_rules=" "evdev"
368 sets the keymap rules file (string). Used to map layout and model to input
373 .BI "keymap_model=" "pc105"
374 sets the keymap model (string). See the Models section in
375 .B "xkeyboard-config(7)."
379 .BI "keymap_layout=" "us,de,gb"
380 sets the comma separated list of keyboard layout codes (string). See the
382 .B "xkeyboard-config(7)."
386 .BI "keymap_variant=" "euro,,intl"
387 sets the comma separated list of keyboard layout variants (string). The number
388 of variants must be the same as the number of layouts above. See the Layouts
390 .B "xkeyboard-config(7)."
394 .BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
395 sets the keymap options (string). See the Options section in
396 .B "xkeyboard-config(7)."
399 .SH "TERMINAL SECTION"
400 Contains settings for the weston terminal application (weston-terminal). It
401 allows to customize the font and shell of the command line interface.
403 .BI "font=" "DejaVu Sans Mono"
404 sets the font of the terminal (string). For a good experience it is recommended
405 to use monospace fonts. In case the font is not found, the default one is used.
409 .BI "font-size=" "14"
410 sets the size of the terminal font (unsigned integer).
414 .BI "term=" "xterm-256color"
415 The terminal shell (string). Sets the $TERM variable.
418 .SH "XWAYLAND SECTION"
420 .BI "path=" "/usr/bin/Xorg"
421 sets the path to the xserver to run (string).
426 .BR weston-launch (1),
428 .BR xkeyboard-config (7)