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 "libinput " "Input device configuration"
74 .BR "shell " "Desktop customization"
75 .BR "launcher " "Add launcher to the panel"
76 .BR "screensaver " "Screensaver selection"
77 .BR "output " "Output configuration"
78 .BR "input-method " "Onscreen keyboard input"
79 .BR "keyboard " "Keyboard layouts"
80 .BR "terminal " "Terminal application options"
81 .BR "xwayland " "XWayland options"
82 .BR "screen-share " "Screen sharing options"
86 Possible value types are string, signed and unsigned 32-bit
87 integer, and boolean. Strings must not be quoted, do not support any
88 escape sequences, and run till the end of the line. Integers can
89 be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
90 (e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
95 section is used to select the startup compositor modules.
97 .BI "shell=" desktop-shell.so
98 specifies a shell to load (string). This can be used to load your own
99 implemented shell or one with Weston as default. Available shells
101 .IR "__weston_modules_dir__"
111 .BI "modules=" xwayland.so,cms-colord.so
112 specifies the modules to load (string). Available modules in the
113 .IR "__weston_modules_dir__"
125 .BI "backend=" headless-backend.so
126 overrides defaults backend. Available backend modules in the
127 .IR "__weston_modules_dir__"
134 .BR headless-backend.so
137 .BR wayland-backend.so
141 .BI "gbm-format="format
142 sets the GBM format used for the framebuffer for the GBM backend. Can be
146 By default, xrgb8888 is used.
150 .SH "LIBINPUT SECTION"
153 section is used to configure input devices when using the libinput input device
156 Available configuration are:
158 .BI "enable_tap=" true
159 enables tap to click on touchpad devices
166 section is used to customize the compositor. Some keys may not be handled by
167 different shell plugins.
169 The entries that can appear in this section are:
172 sets the path for the shell client to run. If not specified
173 .I __weston_shell_client__
174 is launched (string).
176 .BI "background-image=" file
177 sets the path for the background image file (string).
179 .BI "background-type=" tile
180 determines how the background image is drawn (string). Can be
181 .BR scale ", " scale-crop " or " tile " (default)."
182 Scale means scaled to fit the output precisely, not preserving aspect ratio.
183 Scale-crop preserves aspect ratio, scales the background image just big
184 enough to cover the output, and centers it. The image ends up cropped from
185 left and right, or top and bottom, if the aspect ratio does not match the
186 output. Tile repeats the background image to fill the output.
188 .BI "background-color=" 0xAARRGGBB
189 sets the color of the background (unsigned integer). The hexadecimal
190 digit pairs are in order alpha, red, green, and blue.
192 .BI "panel-color=" 0xAARRGGBB
193 sets the color of the panel (unsigned integer). The hexadecimal
194 digit pairs are in order transparency, red, green, and blue. Examples:
198 .BR "0xffff0000 " "Red"
199 .BR "0xff00ff00 " "Green"
200 .BR "0xff0000ff " "Blue"
201 .BR "0x00ffffff " "Fully transparent"
205 .BI "panel-location=" top
206 sets the location of the panel (string). Can be
211 enables screen locking (boolean).
213 .BI "animation=" zoom
214 sets the effect used for opening new windows (string). Can be
218 By default, no animation is used.
220 .BI "close-animation=" fade
221 sets the effect used when closing windows (string). Can be
224 By default, the fade animation is used.
226 .BI "startup-animation=" fade
227 sets the effect used for opening new windows (string). Can be
230 By default, the fade animation is used.
232 .BI "focus-animation=" dim-layer
233 sets the effect used with the focused and unfocused windows. Can be
236 By default, no animation is used.
238 .BI "binding-modifier=" ctrl
239 sets the modifier key used for common bindings (string), such as moving
240 surfaces, resizing, rotating, switching, closing and setting the transparency
241 for windows, controlling the backlight and zooming the desktop. Possible values:
242 ctrl, alt, super (default)
244 .BI "num-workspaces=" 6
245 defines the number of workspaces (unsigned integer). The user can switch
246 workspaces by using the
247 binding+F1, F2 keys. If this key is not set, fall back to one workspace.
249 .BI "cursor-theme=" theme
250 sets the cursor theme (string).
252 .BI "cursor-size=" 24
253 sets the cursor size (unsigned integer).
255 .BI "lockscreen-icon=" path
256 sets the path to lock screen icon image (string). (tablet shell only)
258 .BI "lockscreen=" path
259 sets the path to lock screen background image (string). (tablet shell only)
261 .BI "homescreen=" path
262 sets the path to home screen background image (string). (tablet shell only)
264 .SH "LAUNCHER SECTION"
265 There can be multiple launcher sections, one for each launcher.
268 sets the path to icon image (string). Svg images are not currently supported.
271 sets the path to the program that is run by clicking on this launcher (string).
272 It is possible to pass arguments and environment variables to the program. For
277 path=GDK_BACKEND=wayland gnome-terminal --full-screen
282 .SH "SCREENSAVER SECTION"
285 section is used to select and schedule a screensaver.
288 section is optional, as are all of the entries that may be specified in
291 .BI "path=" /usr/libexec/weston-screensaver
292 This instructs the compositor to use the selected screensaver client on a given
293 path (string). If this line is missing or commented out, the screensaver in
299 The idle time in seconds until the screensaver disappears in order to save power
302 There can be multiple output sections, each corresponding to one output. It is
303 currently only recognized by the drm and x11 backends.
306 sets a name for the output (string). The backend uses the name to
307 identify the output. All X11 output names start with a letter X. All
308 Wayland output names start with the letters WL. The available
309 output names for DRM backend are listed in the
310 .B "weston-launch(1)"
316 .BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
317 .BR "VGA1 " "DRM backend, VGA connector no.1"
318 .BR "X1 " "X11 backend, X window no.1"
319 .BR "WL1 " "Wayland backend, Wayland window no.1"
330 sets the output mode (string). The mode parameter is handled differently
331 depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
333 The DRM backend accepts different modes:
337 .BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
338 .BR "preferred " "Uses the preferred mode"
339 .BR "current " "Uses the current crt controller mode"
340 .BR "off " "Disables the output"
345 Optionally, an user may specify a modeline, such as:
350 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
354 It consists of the refresh rate in Hz, horizontal and vertical resolution,
355 options for horizontal and vertical synchronisation. The program
357 can provide suitable modeline string.
360 .BI "transform=" normal
361 The transformation applied to screen output (string). The transform key can
362 be one of the following 8 strings:
366 .BR "normal " "Normal output."
367 .BR "90 " "90 degrees clockwise."
368 .BR "180 " "Upside down."
369 .BR "270 " "90 degrees counter clockwise."
370 .BR "flipped " "Horizontally flipped"
371 .BR "flipped-90 " "Flipped and 90 degrees clockwise"
372 .BR "flipped-180 " "Flipped upside down"
373 .BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
378 An integer, 1 by default, typically configured as 2 when needed, denoting
379 the scale factor of the output. Applications that support it render at the
380 appropriate scale. For other applications, weston will scale their output
385 Use a value of 2 for outputs with high resolution. Such displays are often
386 called "HiDPI" or "retina" displays.
390 The logical seat name that that this output should be associated with. If this
391 is set then the seat's input will be confined to the output that has the seat
392 set on it. The expectation is that this functionality will be used in a
393 multiheaded environment with a single compositor for multiple output and input
394 configurations. The default seat is called "default" and will always be
395 present. This seat can be constrained like any other.
397 .SH "INPUT-METHOD SECTION"
399 .BI "path=" "/usr/libexec/weston-keyboard"
400 sets the path of the on screen keyboard input method (string).
403 .SH "KEYBOARD SECTION"
404 This section contains the following keys:
406 .BI "keymap_rules=" "evdev"
407 sets the keymap rules file (string). Used to map layout and model to input
412 .BI "keymap_model=" "pc105"
413 sets the keymap model (string). See the Models section in
414 .B "xkeyboard-config(7)."
418 .BI "keymap_layout=" "us,de,gb"
419 sets the comma separated list of keyboard layout codes (string). See the
421 .B "xkeyboard-config(7)."
425 .BI "keymap_variant=" "euro,,intl"
426 sets the comma separated list of keyboard layout variants (string). The number
427 of variants must be the same as the number of layouts above. See the Layouts
429 .B "xkeyboard-config(7)."
433 .BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
434 sets the keymap options (string). See the Options section in
435 .B "xkeyboard-config(7)."
439 .BI "repeat-rate=" "40"
440 sets the rate of repeating keys in characters per second (unsigned integer)
444 .BI "repeat-delay=" "400"
445 sets the delay in milliseconds since key down until repeating starts (unsigned
450 .BI "numlock-on=" "false"
451 sets the default state of the numlock on weston startup for the backends which
455 .SH "TERMINAL SECTION"
456 Contains settings for the weston terminal application (weston-terminal). It
457 allows to customize the font and shell of the command line interface.
459 .BI "font=" "DejaVu Sans Mono"
460 sets the font of the terminal (string). For a good experience it is recommended
461 to use monospace fonts. In case the font is not found, the default one is used.
465 .BI "font-size=" "14"
466 sets the size of the terminal font (unsigned integer).
470 .BI "term=" "xterm-256color"
471 The terminal shell (string). Sets the $TERM variable.
474 .SH "XWAYLAND SECTION"
476 .BI "path=" "/usr/bin/Xorg"
477 sets the path to the xserver to run (string).
480 .SH "SCREEN-SHARE SECTION"
482 .BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
483 --shell=fullscreen-shell.so --no-clients-resize"
484 sets the command to start a fullscreen-shell server for screen sharing (string).
489 .BR weston-launch (1),
491 .BR xkeyboard-config (7)