blob: c3e5747a02c1c021c068629ab8329c403f568503 [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"
80.fi
81.RE
82.PP
83Possible value types are string, signed and unsigned 32-bit
84integer, and boolean. Strings must not be quoted, do not support any
85escape sequences, and run till the end of the line. Integers can
86be 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'.
88.RE
89.SH "CORE SECTION"
90The
91.B core
92section is used to select the startup compositor modules.
93.TP 7
94.BI "modules=" desktop-shell.so,xwayland.so
95specifies the modules to load (string). Available modules in the
96.IR "__weston_modules_dir__"
97directory are:
98.PP
99.RS 10
100.nf
101.BR desktop-shell.so
102.BR tablet-shell.so
103.BR xwayland.so
104.fi
105.RE
106.RS
107.PP
108
109.SH "SHELL SECTION"
110The
111.B shell
112section is used to customize the compositor. Some keys may not be handled by
113different shell plugins.
114.PP
115The entries that can appear in this section are:
116.TP 7
117.BI "background-image=" file
118sets the path for the background image file (string).
119.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200120.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300121determines how the background image is drawn (string). Can be
122.BR scale ", " scale-crop " or " tile " (default)."
123Scale means scaled to fit the output precisely, not preserving aspect ratio.
124Scale-crop preserves aspect ratio, scales the background image just big
125enough to cover the output, and centers it. The image ends up cropped from
126left and right, or top and bottom, if the aspect ratio does not match the
127output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200128.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100129.BI "background-color=" 0xAARRGGBB
130sets the color of the background (unsigned integer). The hexadecimal
131digit pairs are in order alpha, red, green, and blue.
132.TP 7
133.BI "panel-color=" 0xAARRGGBB
134sets the color of the panel (unsigned integer). The hexadecimal
135digit pairs are in order transparency, red, green, and blue. Examples:
136.PP
137.RS 10
138.nf
139.BR "0xffff0000 " "Red"
140.BR "0xff00ff00 " "Green"
141.BR "0xff0000ff " "Blue"
142.BR "0x00ffffff " "Fully transparent"
143.fi
144.RE
145.TP 7
146.BI "locking=" true
147enables screen locking (boolean).
148.TP 7
149.BI "animation=" zoom
150sets the effect used for opening new windows (string). Can be
151.B zoom,
152.B fade.
153Otherwise, no animation is used.
154.TP 7
155.BI "binding-modifier=" ctrl
156sets the modifier key used for common bindings (string), such as moving
157surfaces, resizing, rotating, switching, closing and setting the transparency
158for windows, controlling the backlight and zooming the desktop. Possible values:
159ctrl, alt, super (default)
160.TP 7
161.BI "num-workspaces=" 6
162defines the number of workspaces (unsigned integer). The user can switch
163workspaces by using the
164binding+F1, F2 keys. If this key is not set, fall back to one workspace.
165.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100166.BI "cursor-theme=" theme
167sets the cursor theme (string).
168.TP 7
169.BI "cursor-size=" 24
170sets the cursor size (unsigned integer).
171.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100172.BI "lockscreen-icon=" path
173sets the path to lock screen icon image (string). (tablet shell only)
174.TP 7
175.BI "lockscreen=" path
176sets the path to lock screen background image (string). (tablet shell only)
177.TP 7
178.BI "homescreen=" path
179sets the path to home screen background image (string). (tablet shell only)
180.RE
181.SH "LAUNCHER SECTION"
182There can be multiple launcher sections, one for each launcher.
183.TP 7
184.BI "icon=" icon
185sets the path to icon image (string). Svg images are not currently supported.
186.TP 7
187.BI "path=" program
188sets the path to the program that is run by clicking on this launcher (string).
189It is possible to pass arguments and environment variables to the program. For
190example:
191.nf
192.in +4n
193
194path=GDK_BACKEND=wayland gnome-terminal --full-screen
195.in
196.fi
197.PP
198.RE
199.SH "SCREENSAVER SECTION"
200The
201.B screensaver
202section is used to select and schedule a screensaver.
203The
204.B screensaver
205section is optional, as are all of the entries that may be specified in
206it.
207.TP 7
208.BI "path=" /usr/libexec/weston-screensaver
209This instructs the compositor to use the selected screensaver client on a given
210path (string). If this line is missing or commented out, the screensaver in
211.B "weston(1)"
212is disabled.
213.RE
214.TP 7
215.BI "duration=" 600
216The idle time in seconds until the screensaver disappears in order to save power
217(unsigned integer).
218.SH "OUTPUT SECTION"
219There can be multiple output sections, each corresponding to one output. It is
220currently only recognized by the drm and x11 backends.
221.TP 7
222.BI "name=" name
223sets a name for the output (string). The backend uses the name to
224identify the output. All X11 output names start with a letter X. The available
225output names for DRM backend are listed in the
226.B "weston-launch(1)"
227output.
228Examples of usage:
229.PP
230.RS 10
231.nf
232.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
233.BR "VGA1 " "DRM backend, VGA connector no.1"
234.BR "X1 " "X11 backend, X window no.1"
235.fi
236.RE
237.RS
238.PP
239See
240.B "weston-drm(7)"
241for more details.
242.RE
243.TP 7
244.BI "mode=" mode
245sets the output mode (string). The mode parameter is handled differently
246depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
247the weston window.
248The DRM backend accepts different modes:
249.PP
250.RS 10
251.nf
252.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
253.BR "preferred " "Uses the preferred mode"
254.BR "current " "Uses the current crt controller mode"
255.BR "off " "Disables the output"
256.fi
257.RE
258.RS
259.PP
260Optionally, an user may specify a modeline, such as:
261.PP
262.nf
263.in +4n
264.nf
265173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
266.fi
267.in
268.PP
269It consists of the refresh rate in Hz, horizontal and vertical resolution,
270options for horizontal and vertical synchronisation. The program
271.B "cvt(1)"
272can provide suitable modeline string.
273.RE
274.TP 7
275.BI "transform=" normal
276The transformation applied to screen output (string). The transform key can
277be one of the following 8 strings:
278.PP
279.RS 10
280.nf
281.BR "normal " "Normal output."
282.BR "90 " "90 degrees clockwise."
283.BR "180 " "Upside down."
284.BR "270 " "90 degrees counter clockwise."
285.BR "flipped " "Horizontally flipped"
286.BR "flipped-90 " "Flipped and 90 degrees clockwise"
287.BR "flipped-180 " "Flipped upside down"
288.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
289.fi
290.RE
291.SH "INPUT-METHOD SECTION"
292.TP 7
293.BI "path=" "/usr/libexec/weston-keyboard"
294sets the path of the on screen keyboard input method (string).
295.RE
296.RE
297.SH "KEYBOARD SECTION"
298This section contains the following keys:
299.TP 7
300.BI "keymap_rules=" "evdev"
301sets the keymap rules file (string). Used to map layout and model to input
302device.
303.RE
304.RE
305.TP 7
306.BI "keymap_model=" "pc105"
307sets the keymap model (string). See the Models section in
308.B "xkeyboard-config(7)."
309.RE
310.RE
311.TP 7
312.BI "keymap_layout=" "us,de,gb"
313sets the comma separated list of keyboard layout codes (string). See the
314Layouts section in
315.B "xkeyboard-config(7)."
316.RE
317.RE
318.TP 7
319.BI "keymap_variant=" "euro,,intl"
320sets the comma separated list of keyboard layout variants (string). The number
321of variants must be the same as the number of layouts above. See the Layouts
322section in
323.B "xkeyboard-config(7)."
324.RE
325.RE
326.TP 7
327.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
328sets the keymap options (string). See the Options section in
329.B "xkeyboard-config(7)."
330.RE
331.RE
332.SH "TERMINAL SECTION"
333Contains settings for the weston terminal application (weston-terminal). It
334allows to customize the font and shell of the command line interface.
335.TP 7
336.BI "font=" "DejaVu Sans Mono"
337sets the font of the terminal (string). For a good experience it is recommend
338to use monospace fonts. In case the font is not found, the default one is used.
339.RE
340.RE
341.TP 7
342.BI "font-size=" "14"
343sets the size of the terminal font (unsigned integer).
344.RE
345.RE
346.TP 7
347.BI "term=" "xterm-256color"
348The terminal shell (string). Sets the $TERM variable.
349.RE
350.RE
351.SH "SEE ALSO"
352.BR weston (1),
353.BR weston-launch (1),
354.BR weston-drm (7),
355.BR xkeyboard-config (7)