blob: d252419314eef7c3b3409eec54e9076c09a78f9e [file] [log] [blame]
Martin Minarikedc51c02013-01-18 18:44:29 +01001.\" 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
5weston.ini \- configuration file for
6.B Weston
7\- the reference Wayland
8compositor
9.SH INTRODUCTION
10.B Weston
11obtains configuration from its command line parameters and the configuration
12file described here.
13.SH DESCRIPTION
14.B Weston
15uses a configuration file called
16.I weston.ini
17for its setup.
18The
19.I weston.ini
20configuration file is searched for in one of the following places when the
21server 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)"
Ossama Othmana50e6e42013-05-14 09:48:26 -070027.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)"
Martin Minarikedc51c02013-01-18 18:44:29 +010031.fi
32.RE
33.PP
34where environment variable
35.B $HOME
36is the user's home directory, and
37.B $XDG_CONFIG_HOME
Ossama Othmana50e6e42013-05-14 09:48:26 -070038is the user specific configuration directory, and
39.B $XDG_CONFIG_DIRS
40is a colon
41.B ':'
42delimited listed of configuration base directories, such as
43.BR /etc/xdg-foo:/etc/xdg .
Martin Minarikedc51c02013-01-18 18:44:29 +010044.PP
45The
46.I weston.ini
47file is composed of a number of sections which may be present in any order, or
48omitted to use default configuration values. Each section has the form:
49.PP
50.RS 4
51.nf
52.BI [ SectionHeader ]
53.RI Key1=Value1
54.RI Key2=Value2
55 ...
56.fi
57.RE
58.PP
59The spaces are significant.
60Comment lines are ignored:
61.PP
62.RS 4
63.nf
64.IR "#comment"
65.fi
66.RE
67.PP
68The section headers are:
69.PP
70.RS 4
71.nf
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"
Maksim Melnikau92de1442013-08-14 22:33:10 +030080.BR "xwayland " "XWayland options"
Martin Minarikedc51c02013-01-18 18:44:29 +010081.fi
82.RE
83.PP
84Possible value types are string, signed and unsigned 32-bit
85integer, and boolean. Strings must not be quoted, do not support any
86escape sequences, and run till the end of the line. Integers can
87be 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'.
89.RE
90.SH "CORE SECTION"
91The
92.B core
93section is used to select the startup compositor modules.
94.TP 7
95.BI "modules=" desktop-shell.so,xwayland.so
96specifies the modules to load (string). Available modules in the
97.IR "__weston_modules_dir__"
98directory are:
99.PP
100.RS 10
101.nf
102.BR desktop-shell.so
103.BR tablet-shell.so
104.BR xwayland.so
105.fi
106.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700107.TP 7
108.BI "gbm-format="format
109sets the GBM format used for the framebuffer for the GBM backend. Can be
110.B xrgb8888,
111.B xrgb2101010,
112.B rgb565.
113By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100114.RS
115.PP
116
117.SH "SHELL SECTION"
118The
119.B shell
120section is used to customize the compositor. Some keys may not be handled by
121different shell plugins.
122.PP
123The entries that can appear in this section are:
124.TP 7
125.BI "background-image=" file
126sets the path for the background image file (string).
127.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200128.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300129determines how the background image is drawn (string). Can be
130.BR scale ", " scale-crop " or " tile " (default)."
131Scale means scaled to fit the output precisely, not preserving aspect ratio.
132Scale-crop preserves aspect ratio, scales the background image just big
133enough to cover the output, and centers it. The image ends up cropped from
134left and right, or top and bottom, if the aspect ratio does not match the
135output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200136.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100137.BI "background-color=" 0xAARRGGBB
138sets the color of the background (unsigned integer). The hexadecimal
139digit pairs are in order alpha, red, green, and blue.
140.TP 7
141.BI "panel-color=" 0xAARRGGBB
142sets the color of the panel (unsigned integer). The hexadecimal
143digit pairs are in order transparency, red, green, and blue. Examples:
144.PP
145.RS 10
146.nf
147.BR "0xffff0000 " "Red"
148.BR "0xff00ff00 " "Green"
149.BR "0xff0000ff " "Blue"
150.BR "0x00ffffff " "Fully transparent"
151.fi
152.RE
153.TP 7
154.BI "locking=" true
155enables screen locking (boolean).
156.TP 7
157.BI "animation=" zoom
158sets the effect used for opening new windows (string). Can be
159.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700160.B fade,
161.B none.
162By default, no animation is used.
163.TP 7
164.BI "startup-animation=" fade
165sets the effect used for opening new windows (string). Can be
166.B fade,
167.B none.
168By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100169.TP 7
170.BI "binding-modifier=" ctrl
171sets the modifier key used for common bindings (string), such as moving
172surfaces, resizing, rotating, switching, closing and setting the transparency
173for windows, controlling the backlight and zooming the desktop. Possible values:
174ctrl, alt, super (default)
175.TP 7
176.BI "num-workspaces=" 6
177defines the number of workspaces (unsigned integer). The user can switch
178workspaces by using the
179binding+F1, F2 keys. If this key is not set, fall back to one workspace.
180.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100181.BI "cursor-theme=" theme
182sets the cursor theme (string).
183.TP 7
184.BI "cursor-size=" 24
185sets the cursor size (unsigned integer).
186.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100187.BI "lockscreen-icon=" path
188sets the path to lock screen icon image (string). (tablet shell only)
189.TP 7
190.BI "lockscreen=" path
191sets the path to lock screen background image (string). (tablet shell only)
192.TP 7
193.BI "homescreen=" path
194sets the path to home screen background image (string). (tablet shell only)
195.RE
196.SH "LAUNCHER SECTION"
197There can be multiple launcher sections, one for each launcher.
198.TP 7
199.BI "icon=" icon
200sets the path to icon image (string). Svg images are not currently supported.
201.TP 7
202.BI "path=" program
203sets the path to the program that is run by clicking on this launcher (string).
204It is possible to pass arguments and environment variables to the program. For
205example:
206.nf
207.in +4n
208
209path=GDK_BACKEND=wayland gnome-terminal --full-screen
210.in
211.fi
212.PP
213.RE
214.SH "SCREENSAVER SECTION"
215The
216.B screensaver
217section is used to select and schedule a screensaver.
218The
219.B screensaver
220section is optional, as are all of the entries that may be specified in
221it.
222.TP 7
223.BI "path=" /usr/libexec/weston-screensaver
224This instructs the compositor to use the selected screensaver client on a given
225path (string). If this line is missing or commented out, the screensaver in
226.B "weston(1)"
227is disabled.
228.RE
229.TP 7
230.BI "duration=" 600
231The idle time in seconds until the screensaver disappears in order to save power
232(unsigned integer).
233.SH "OUTPUT SECTION"
234There can be multiple output sections, each corresponding to one output. It is
235currently only recognized by the drm and x11 backends.
236.TP 7
237.BI "name=" name
238sets a name for the output (string). The backend uses the name to
239identify the output. All X11 output names start with a letter X. The available
240output names for DRM backend are listed in the
241.B "weston-launch(1)"
242output.
243Examples of usage:
244.PP
245.RS 10
246.nf
247.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
248.BR "VGA1 " "DRM backend, VGA connector no.1"
249.BR "X1 " "X11 backend, X window no.1"
250.fi
251.RE
252.RS
253.PP
254See
255.B "weston-drm(7)"
256for more details.
257.RE
258.TP 7
259.BI "mode=" mode
260sets the output mode (string). The mode parameter is handled differently
261depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
262the weston window.
263The DRM backend accepts different modes:
264.PP
265.RS 10
266.nf
267.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
268.BR "preferred " "Uses the preferred mode"
269.BR "current " "Uses the current crt controller mode"
270.BR "off " "Disables the output"
271.fi
272.RE
273.RS
274.PP
275Optionally, an user may specify a modeline, such as:
276.PP
277.nf
278.in +4n
279.nf
280173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
281.fi
282.in
283.PP
284It consists of the refresh rate in Hz, horizontal and vertical resolution,
285options for horizontal and vertical synchronisation. The program
286.B "cvt(1)"
287can provide suitable modeline string.
288.RE
289.TP 7
290.BI "transform=" normal
291The transformation applied to screen output (string). The transform key can
292be one of the following 8 strings:
293.PP
294.RS 10
295.nf
296.BR "normal " "Normal output."
297.BR "90 " "90 degrees clockwise."
298.BR "180 " "Upside down."
299.BR "270 " "90 degrees counter clockwise."
300.BR "flipped " "Horizontally flipped"
301.BR "flipped-90 " "Flipped and 90 degrees clockwise"
302.BR "flipped-180 " "Flipped upside down"
303.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
304.fi
305.RE
Rob Bradford14494622013-06-25 18:56:43 +0100306.TP 7
307.BI "seat=" name
308The logical seat name that that this output should be associated with. If this
309is set then the seat's input will be confined to the output that has the seat
310set on it. The expectation is that this functionality will be used in a
311multiheaded environment with a single compositor for multiple output and input
312configurations. The default seat is called "default" and will always be
313present. This seat can be constrained like any other.
314.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100315.SH "INPUT-METHOD SECTION"
316.TP 7
317.BI "path=" "/usr/libexec/weston-keyboard"
318sets the path of the on screen keyboard input method (string).
319.RE
320.RE
321.SH "KEYBOARD SECTION"
322This section contains the following keys:
323.TP 7
324.BI "keymap_rules=" "evdev"
325sets the keymap rules file (string). Used to map layout and model to input
326device.
327.RE
328.RE
329.TP 7
330.BI "keymap_model=" "pc105"
331sets the keymap model (string). See the Models section in
332.B "xkeyboard-config(7)."
333.RE
334.RE
335.TP 7
336.BI "keymap_layout=" "us,de,gb"
337sets the comma separated list of keyboard layout codes (string). See the
338Layouts section in
339.B "xkeyboard-config(7)."
340.RE
341.RE
342.TP 7
343.BI "keymap_variant=" "euro,,intl"
344sets the comma separated list of keyboard layout variants (string). The number
345of variants must be the same as the number of layouts above. See the Layouts
346section in
347.B "xkeyboard-config(7)."
348.RE
349.RE
350.TP 7
351.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
352sets the keymap options (string). See the Options section in
353.B "xkeyboard-config(7)."
354.RE
355.RE
356.SH "TERMINAL SECTION"
357Contains settings for the weston terminal application (weston-terminal). It
358allows to customize the font and shell of the command line interface.
359.TP 7
360.BI "font=" "DejaVu Sans Mono"
361sets the font of the terminal (string). For a good experience it is recommend
362to use monospace fonts. In case the font is not found, the default one is used.
363.RE
364.RE
365.TP 7
366.BI "font-size=" "14"
367sets the size of the terminal font (unsigned integer).
368.RE
369.RE
370.TP 7
371.BI "term=" "xterm-256color"
372The terminal shell (string). Sets the $TERM variable.
373.RE
374.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300375.SH "XWAYLAND SECTION"
376.TP 7
377.BI "path=" "/usr/bin/Xorg"
378sets the path to the xserver to run (string).
379.RE
380.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100381.SH "SEE ALSO"
382.BR weston (1),
383.BR weston-launch (1),
384.BR weston-drm (7),
385.BR xkeyboard-config (7)