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"
83 Possible value types are string, signed and unsigned 32-bit
84 integer, and boolean. Strings must not be quoted, do not support any
85 escape sequences, and run till the end of the line. Integers can
86 be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
87 (e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
92 section is used to select the startup compositor modules.
94 .BI "modules=" desktop-shell.so,xwayland.so
95 specifies the modules to load (string). Available modules in the
96 .IR "__weston_modules_dir__"
112 section is used to customize the compositor. Some keys may not be handled by
113 different shell plugins.
115 The entries that can appear in this section are:
117 .BI "background-image=" file
118 sets the path for the background image file (string).
120 .BI "background-color=" 0xAARRGGBB
121 sets the color of the background (unsigned integer). The hexadecimal
122 digit pairs are in order alpha, red, green, and blue.
124 .BI "panel-color=" 0xAARRGGBB
125 sets the color of the panel (unsigned integer). The hexadecimal
126 digit pairs are in order transparency, red, green, and blue. Examples:
130 .BR "0xffff0000 " "Red"
131 .BR "0xff00ff00 " "Green"
132 .BR "0xff0000ff " "Blue"
133 .BR "0x00ffffff " "Fully transparent"
138 enables screen locking (boolean).
140 .BI "animation=" zoom
141 sets the effect used for opening new windows (string). Can be
144 Otherwise, no animation is used.
146 .BI "binding-modifier=" ctrl
147 sets the modifier key used for common bindings (string), such as moving
148 surfaces, resizing, rotating, switching, closing and setting the transparency
149 for windows, controlling the backlight and zooming the desktop. Possible values:
150 ctrl, alt, super (default)
152 .BI "num-workspaces=" 6
153 defines the number of workspaces (unsigned integer). The user can switch
154 workspaces by using the
155 binding+F1, F2 keys. If this key is not set, fall back to one workspace.
157 .BI "lockscreen-icon=" path
158 sets the path to lock screen icon image (string). (tablet shell only)
160 .BI "lockscreen=" path
161 sets the path to lock screen background image (string). (tablet shell only)
163 .BI "homescreen=" path
164 sets the path to home screen background image (string). (tablet shell only)
166 .SH "LAUNCHER SECTION"
167 There can be multiple launcher sections, one for each launcher.
170 sets the path to icon image (string). Svg images are not currently supported.
173 sets the path to the program that is run by clicking on this launcher (string).
174 It is possible to pass arguments and environment variables to the program. For
179 path=GDK_BACKEND=wayland gnome-terminal --full-screen
184 .SH "SCREENSAVER SECTION"
187 section is used to select and schedule a screensaver.
190 section is optional, as are all of the entries that may be specified in
193 .BI "path=" /usr/libexec/weston-screensaver
194 This instructs the compositor to use the selected screensaver client on a given
195 path (string). If this line is missing or commented out, the screensaver in
201 The idle time in seconds until the screensaver disappears in order to save power
204 There can be multiple output sections, each corresponding to one output. It is
205 currently only recognized by the drm and x11 backends.
208 sets a name for the output (string). The backend uses the name to
209 identify the output. All X11 output names start with a letter X. The available
210 output names for DRM backend are listed in the
211 .B "weston-launch(1)"
217 .BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
218 .BR "VGA1 " "DRM backend, VGA connector no.1"
219 .BR "X1 " "X11 backend, X window no.1"
230 sets the output mode (string). The mode parameter is handled differently
231 depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
233 The DRM backend accepts different modes:
237 .BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
238 .BR "preferred " "Uses the preferred mode"
239 .BR "current " "Uses the current crt controller mode"
240 .BR "off " "Disables the output"
245 Optionally, an user may specify a modeline, such as:
250 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
254 It consists of the refresh rate in Hz, horizontal and vertical resolution,
255 options for horizontal and vertical synchronisation. The program
257 can provide suitable modeline string.
260 .BI "transform=" normal
261 The transformation applied to screen output (string). The transform key can
262 be one of the following 8 strings:
266 .BR "normal " "Normal output."
267 .BR "90 " "90 degrees clockwise."
268 .BR "180 " "Upside down."
269 .BR "270 " "90 degrees counter clockwise."
270 .BR "flipped " "Horizontally flipped"
271 .BR "flipped-90 " "Flipped and 90 degrees clockwise"
272 .BR "flipped-180 " "Flipped upside down"
273 .BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
276 .SH "INPUT-METHOD SECTION"
278 .BI "path=" "/usr/libexec/weston-keyboard"
279 sets the path of the on screen keyboard input method (string).
282 .SH "KEYBOARD SECTION"
283 This section contains the following keys:
285 .BI "keymap_rules=" "evdev"
286 sets the keymap rules file (string). Used to map layout and model to input
291 .BI "keymap_model=" "pc105"
292 sets the keymap model (string). See the Models section in
293 .B "xkeyboard-config(7)."
297 .BI "keymap_layout=" "us,de,gb"
298 sets the comma separated list of keyboard layout codes (string). See the
300 .B "xkeyboard-config(7)."
304 .BI "keymap_variant=" "euro,,intl"
305 sets the comma separated list of keyboard layout variants (string). The number
306 of variants must be the same as the number of layouts above. See the Layouts
308 .B "xkeyboard-config(7)."
312 .BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
313 sets the keymap options (string). See the Options section in
314 .B "xkeyboard-config(7)."
317 .SH "TERMINAL SECTION"
318 Contains settings for the weston terminal application (weston-terminal). It
319 allows to customize the font and shell of the command line interface.
321 .BI "font=" "DejaVu Sans Mono"
322 sets the font of the terminal (string). For a good experience it is recommend
323 to use monospace fonts. In case the font is not found, the default one is used.
327 .BI "font-size=" "14"
328 sets the size of the terminal font (unsigned integer).
332 .BI "term=" "xterm-256color"
333 The terminal shell (string). Sets the $TERM variable.
338 .BR weston-launch (1),
340 .BR xkeyboard-config (7)