blob: 6be90bf4c0aeda3c2e4c2c425ec9c66f91600d6c [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
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100108.TP 7
109.BI "backend=" headless-backend.so
110overrides defaults backend. Available backend modules in the
111.IR "__weston_modules_dir__"
112directory are:
113.PP
114.RS 10
115.nf
116.BR drm-backend.so
117.BR fbdev-backend.so
118.BR headless-backend.so
119.BR rdp-backend.so
120.BR rpi-backend.so
121.BR wayland-backend.so
122.BR x11-backend.so
123.fi
124.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700125.BI "gbm-format="format
126sets the GBM format used for the framebuffer for the GBM backend. Can be
127.B xrgb8888,
128.B xrgb2101010,
129.B rgb565.
130By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100131.RS
132.PP
133
134.SH "SHELL SECTION"
135The
136.B shell
137section is used to customize the compositor. Some keys may not be handled by
138different shell plugins.
139.PP
140The entries that can appear in this section are:
141.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100142.BI "client=" file
143sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100144.I __weston_shell_client__
145is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100146.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100147.BI "background-image=" file
148sets the path for the background image file (string).
149.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200150.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300151determines how the background image is drawn (string). Can be
152.BR scale ", " scale-crop " or " tile " (default)."
153Scale means scaled to fit the output precisely, not preserving aspect ratio.
154Scale-crop preserves aspect ratio, scales the background image just big
155enough to cover the output, and centers it. The image ends up cropped from
156left and right, or top and bottom, if the aspect ratio does not match the
157output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200158.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100159.BI "background-color=" 0xAARRGGBB
160sets the color of the background (unsigned integer). The hexadecimal
161digit pairs are in order alpha, red, green, and blue.
162.TP 7
163.BI "panel-color=" 0xAARRGGBB
164sets the color of the panel (unsigned integer). The hexadecimal
165digit pairs are in order transparency, red, green, and blue. Examples:
166.PP
167.RS 10
168.nf
169.BR "0xffff0000 " "Red"
170.BR "0xff00ff00 " "Green"
171.BR "0xff0000ff " "Blue"
172.BR "0x00ffffff " "Fully transparent"
173.fi
174.RE
175.TP 7
176.BI "locking=" true
177enables screen locking (boolean).
178.TP 7
179.BI "animation=" zoom
180sets the effect used for opening new windows (string). Can be
181.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700182.B fade,
183.B none.
184By default, no animation is used.
185.TP 7
186.BI "startup-animation=" fade
187sets the effect used for opening new windows (string). Can be
188.B fade,
189.B none.
190By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100191.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100192.BI "focus-animation=" dim-layer
193sets the effect used with the focused and unfocused windows. Can be
194.B dim-layer,
195.B none.
196By default, no animation is used.
197.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100198.BI "binding-modifier=" ctrl
199sets the modifier key used for common bindings (string), such as moving
200surfaces, resizing, rotating, switching, closing and setting the transparency
201for windows, controlling the backlight and zooming the desktop. Possible values:
202ctrl, alt, super (default)
203.TP 7
204.BI "num-workspaces=" 6
205defines the number of workspaces (unsigned integer). The user can switch
206workspaces by using the
207binding+F1, F2 keys. If this key is not set, fall back to one workspace.
208.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100209.BI "cursor-theme=" theme
210sets the cursor theme (string).
211.TP 7
212.BI "cursor-size=" 24
213sets the cursor size (unsigned integer).
214.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100215.BI "lockscreen-icon=" path
216sets the path to lock screen icon image (string). (tablet shell only)
217.TP 7
218.BI "lockscreen=" path
219sets the path to lock screen background image (string). (tablet shell only)
220.TP 7
221.BI "homescreen=" path
222sets the path to home screen background image (string). (tablet shell only)
223.RE
224.SH "LAUNCHER SECTION"
225There can be multiple launcher sections, one for each launcher.
226.TP 7
227.BI "icon=" icon
228sets the path to icon image (string). Svg images are not currently supported.
229.TP 7
230.BI "path=" program
231sets the path to the program that is run by clicking on this launcher (string).
232It is possible to pass arguments and environment variables to the program. For
233example:
234.nf
235.in +4n
236
237path=GDK_BACKEND=wayland gnome-terminal --full-screen
238.in
239.fi
240.PP
241.RE
242.SH "SCREENSAVER SECTION"
243The
244.B screensaver
245section is used to select and schedule a screensaver.
246The
247.B screensaver
248section is optional, as are all of the entries that may be specified in
249it.
250.TP 7
251.BI "path=" /usr/libexec/weston-screensaver
252This instructs the compositor to use the selected screensaver client on a given
253path (string). If this line is missing or commented out, the screensaver in
254.B "weston(1)"
255is disabled.
256.RE
257.TP 7
258.BI "duration=" 600
259The idle time in seconds until the screensaver disappears in order to save power
260(unsigned integer).
261.SH "OUTPUT SECTION"
262There can be multiple output sections, each corresponding to one output. It is
263currently only recognized by the drm and x11 backends.
264.TP 7
265.BI "name=" name
266sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500267identify the output. All X11 output names start with a letter X. All
268Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100269output names for DRM backend are listed in the
270.B "weston-launch(1)"
271output.
272Examples of usage:
273.PP
274.RS 10
275.nf
276.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
277.BR "VGA1 " "DRM backend, VGA connector no.1"
278.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500279.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100280.fi
281.RE
282.RS
283.PP
284See
285.B "weston-drm(7)"
286for more details.
287.RE
288.TP 7
289.BI "mode=" mode
290sets the output mode (string). The mode parameter is handled differently
291depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
292the weston window.
293The DRM backend accepts different modes:
294.PP
295.RS 10
296.nf
297.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
298.BR "preferred " "Uses the preferred mode"
299.BR "current " "Uses the current crt controller mode"
300.BR "off " "Disables the output"
301.fi
302.RE
303.RS
304.PP
305Optionally, an user may specify a modeline, such as:
306.PP
307.nf
308.in +4n
309.nf
310173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
311.fi
312.in
313.PP
314It consists of the refresh rate in Hz, horizontal and vertical resolution,
315options for horizontal and vertical synchronisation. The program
316.B "cvt(1)"
317can provide suitable modeline string.
318.RE
319.TP 7
320.BI "transform=" normal
321The transformation applied to screen output (string). The transform key can
322be one of the following 8 strings:
323.PP
324.RS 10
325.nf
326.BR "normal " "Normal output."
327.BR "90 " "90 degrees clockwise."
328.BR "180 " "Upside down."
329.BR "270 " "90 degrees counter clockwise."
330.BR "flipped " "Horizontally flipped"
331.BR "flipped-90 " "Flipped and 90 degrees clockwise"
332.BR "flipped-180 " "Flipped upside down"
333.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
334.fi
335.RE
Rob Bradford14494622013-06-25 18:56:43 +0100336.TP 7
337.BI "seat=" name
338The logical seat name that that this output should be associated with. If this
339is set then the seat's input will be confined to the output that has the seat
340set on it. The expectation is that this functionality will be used in a
341multiheaded environment with a single compositor for multiple output and input
342configurations. The default seat is called "default" and will always be
343present. This seat can be constrained like any other.
344.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100345.SH "INPUT-METHOD SECTION"
346.TP 7
347.BI "path=" "/usr/libexec/weston-keyboard"
348sets the path of the on screen keyboard input method (string).
349.RE
350.RE
351.SH "KEYBOARD SECTION"
352This section contains the following keys:
353.TP 7
354.BI "keymap_rules=" "evdev"
355sets the keymap rules file (string). Used to map layout and model to input
356device.
357.RE
358.RE
359.TP 7
360.BI "keymap_model=" "pc105"
361sets the keymap model (string). See the Models section in
362.B "xkeyboard-config(7)."
363.RE
364.RE
365.TP 7
366.BI "keymap_layout=" "us,de,gb"
367sets the comma separated list of keyboard layout codes (string). See the
368Layouts section in
369.B "xkeyboard-config(7)."
370.RE
371.RE
372.TP 7
373.BI "keymap_variant=" "euro,,intl"
374sets the comma separated list of keyboard layout variants (string). The number
375of variants must be the same as the number of layouts above. See the Layouts
376section in
377.B "xkeyboard-config(7)."
378.RE
379.RE
380.TP 7
381.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
382sets the keymap options (string). See the Options section in
383.B "xkeyboard-config(7)."
384.RE
385.RE
386.SH "TERMINAL SECTION"
387Contains settings for the weston terminal application (weston-terminal). It
388allows to customize the font and shell of the command line interface.
389.TP 7
390.BI "font=" "DejaVu Sans Mono"
391sets the font of the terminal (string). For a good experience it is recommend
392to use monospace fonts. In case the font is not found, the default one is used.
393.RE
394.RE
395.TP 7
396.BI "font-size=" "14"
397sets the size of the terminal font (unsigned integer).
398.RE
399.RE
400.TP 7
401.BI "term=" "xterm-256color"
402The terminal shell (string). Sets the $TERM variable.
403.RE
404.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300405.SH "XWAYLAND SECTION"
406.TP 7
407.BI "path=" "/usr/bin/Xorg"
408sets the path to the xserver to run (string).
409.RE
410.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100411.SH "SEE ALSO"
412.BR weston (1),
413.BR weston-launch (1),
414.BR weston-drm (7),
415.BR xkeyboard-config (7)