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