blob: 4be752bb193191f80dd5c16fb571499117cbcee1 [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"
Jonas Ådahld3d128e2014-08-19 21:56:12 +020073.BR "libinput " "Input device configuration"
Martin Minarikedc51c02013-01-18 18:44:29 +010074.BR "shell " "Desktop customization"
75.BR "launcher " "Add launcher to the panel"
76.BR "screensaver " "Screensaver selection"
77.BR "output " "Output configuration"
78.BR "input-method " "Onscreen keyboard input"
79.BR "keyboard " "Keyboard layouts"
80.BR "terminal " "Terminal application options"
Maksim Melnikau92de1442013-08-14 22:33:10 +030081.BR "xwayland " "XWayland options"
Martin Minarikedc51c02013-01-18 18:44:29 +010082.fi
83.RE
84.PP
85Possible value types are string, signed and unsigned 32-bit
86integer, and boolean. Strings must not be quoted, do not support any
87escape sequences, and run till the end of the line. Integers can
88be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
89(e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
90.RE
91.SH "CORE SECTION"
92The
93.B core
94section is used to select the startup compositor modules.
95.TP 7
Nobuhiko Tanibata88419172014-02-10 12:15:11 +090096.BI "shell=" desktop-shell.so
97specifies a shell to load (string). This can be used to load your own
98implemented shell or one with Weston as default. Available shells
99in the
Martin Minarikedc51c02013-01-18 18:44:29 +0100100.IR "__weston_modules_dir__"
101directory are:
102.PP
103.RS 10
104.nf
105.BR desktop-shell.so
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900106.fi
107.RE
108.TP 7
109.TP 7
110.BI "modules=" xwayland.so,cms-colord.so
111specifies the modules to load (string). Available modules in the
112.IR "__weston_modules_dir__"
113directory are:
114.PP
115.RS 10
116.nf
Martin Minarikedc51c02013-01-18 18:44:29 +0100117.BR xwayland.so
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900118.BR cms-colord.so
Martin Minarikedc51c02013-01-18 18:44:29 +0100119.fi
120.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700121.TP 7
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100122.TP 7
123.BI "backend=" headless-backend.so
124overrides defaults backend. Available backend modules in the
125.IR "__weston_modules_dir__"
126directory are:
127.PP
128.RS 10
129.nf
130.BR drm-backend.so
131.BR fbdev-backend.so
132.BR headless-backend.so
133.BR rdp-backend.so
134.BR rpi-backend.so
135.BR wayland-backend.so
136.BR x11-backend.so
137.fi
138.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700139.BI "gbm-format="format
140sets the GBM format used for the framebuffer for the GBM backend. Can be
141.B xrgb8888,
142.B xrgb2101010,
143.B rgb565.
144By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100145.RS
146.PP
147
Jonas Ådahld3d128e2014-08-19 21:56:12 +0200148.SH "LIBINPUT SECTION"
149The
150.B libinput
151section is used to configure input devices when using the libinput input device
152backend.
153.PP
154Available configuration are:
155.TP 7
156.BI "enable_tap=" true
157enables tap to click on touchpad devices
158.RS
159.PP
160
Martin Minarikedc51c02013-01-18 18:44:29 +0100161.SH "SHELL SECTION"
162The
163.B shell
164section is used to customize the compositor. Some keys may not be handled by
165different shell plugins.
166.PP
167The entries that can appear in this section are:
168.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100169.BI "client=" file
170sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100171.I __weston_shell_client__
172is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100173.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100174.BI "background-image=" file
175sets the path for the background image file (string).
176.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200177.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300178determines how the background image is drawn (string). Can be
179.BR scale ", " scale-crop " or " tile " (default)."
180Scale means scaled to fit the output precisely, not preserving aspect ratio.
181Scale-crop preserves aspect ratio, scales the background image just big
182enough to cover the output, and centers it. The image ends up cropped from
183left and right, or top and bottom, if the aspect ratio does not match the
184output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200185.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100186.BI "background-color=" 0xAARRGGBB
187sets the color of the background (unsigned integer). The hexadecimal
188digit pairs are in order alpha, red, green, and blue.
189.TP 7
190.BI "panel-color=" 0xAARRGGBB
191sets the color of the panel (unsigned integer). The hexadecimal
192digit pairs are in order transparency, red, green, and blue. Examples:
193.PP
194.RS 10
195.nf
196.BR "0xffff0000 " "Red"
197.BR "0xff00ff00 " "Green"
198.BR "0xff0000ff " "Blue"
199.BR "0x00ffffff " "Fully transparent"
200.fi
201.RE
202.TP 7
Jonny Lambe67118c2014-08-12 15:07:51 +0200203.BI "panel-location=" top
204sets the location of the panel (string). Can be
205.B top,
206.B none.
207.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100208.BI "locking=" true
209enables screen locking (boolean).
210.TP 7
211.BI "animation=" zoom
212sets the effect used for opening new windows (string). Can be
213.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700214.B fade,
215.B none.
216By default, no animation is used.
217.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200218.BI "close-animation=" fade
219sets the effect used when closing windows (string). Can be
220.B fade,
221.B none.
222By default, the fade animation is used.
223.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700224.BI "startup-animation=" fade
225sets the effect used for opening new windows (string). Can be
226.B fade,
227.B none.
228By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100229.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100230.BI "focus-animation=" dim-layer
231sets the effect used with the focused and unfocused windows. Can be
232.B dim-layer,
233.B none.
234By default, no animation is used.
235.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100236.BI "binding-modifier=" ctrl
237sets the modifier key used for common bindings (string), such as moving
238surfaces, resizing, rotating, switching, closing and setting the transparency
239for windows, controlling the backlight and zooming the desktop. Possible values:
240ctrl, alt, super (default)
241.TP 7
242.BI "num-workspaces=" 6
243defines the number of workspaces (unsigned integer). The user can switch
244workspaces by using the
245binding+F1, F2 keys. If this key is not set, fall back to one workspace.
246.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100247.BI "cursor-theme=" theme
248sets the cursor theme (string).
249.TP 7
250.BI "cursor-size=" 24
251sets the cursor size (unsigned integer).
252.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100253.BI "lockscreen-icon=" path
254sets the path to lock screen icon image (string). (tablet shell only)
255.TP 7
256.BI "lockscreen=" path
257sets the path to lock screen background image (string). (tablet shell only)
258.TP 7
259.BI "homescreen=" path
260sets the path to home screen background image (string). (tablet shell only)
261.RE
262.SH "LAUNCHER SECTION"
263There can be multiple launcher sections, one for each launcher.
264.TP 7
265.BI "icon=" icon
266sets the path to icon image (string). Svg images are not currently supported.
267.TP 7
268.BI "path=" program
269sets the path to the program that is run by clicking on this launcher (string).
270It is possible to pass arguments and environment variables to the program. For
271example:
272.nf
273.in +4n
274
275path=GDK_BACKEND=wayland gnome-terminal --full-screen
276.in
277.fi
278.PP
279.RE
280.SH "SCREENSAVER SECTION"
281The
282.B screensaver
283section is used to select and schedule a screensaver.
284The
285.B screensaver
286section is optional, as are all of the entries that may be specified in
287it.
288.TP 7
289.BI "path=" /usr/libexec/weston-screensaver
290This instructs the compositor to use the selected screensaver client on a given
291path (string). If this line is missing or commented out, the screensaver in
292.B "weston(1)"
293is disabled.
294.RE
295.TP 7
296.BI "duration=" 600
297The idle time in seconds until the screensaver disappears in order to save power
298(unsigned integer).
299.SH "OUTPUT SECTION"
300There can be multiple output sections, each corresponding to one output. It is
301currently only recognized by the drm and x11 backends.
302.TP 7
303.BI "name=" name
304sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500305identify the output. All X11 output names start with a letter X. All
306Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100307output names for DRM backend are listed in the
308.B "weston-launch(1)"
309output.
310Examples of usage:
311.PP
312.RS 10
313.nf
314.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
315.BR "VGA1 " "DRM backend, VGA connector no.1"
316.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500317.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100318.fi
319.RE
320.RS
321.PP
322See
323.B "weston-drm(7)"
324for more details.
325.RE
326.TP 7
327.BI "mode=" mode
328sets the output mode (string). The mode parameter is handled differently
329depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
330the weston window.
331The DRM backend accepts different modes:
332.PP
333.RS 10
334.nf
335.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
336.BR "preferred " "Uses the preferred mode"
337.BR "current " "Uses the current crt controller mode"
338.BR "off " "Disables the output"
339.fi
340.RE
341.RS
342.PP
343Optionally, an user may specify a modeline, such as:
344.PP
345.nf
346.in +4n
347.nf
348173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
349.fi
350.in
351.PP
352It consists of the refresh rate in Hz, horizontal and vertical resolution,
353options for horizontal and vertical synchronisation. The program
354.B "cvt(1)"
355can provide suitable modeline string.
356.RE
357.TP 7
358.BI "transform=" normal
359The transformation applied to screen output (string). The transform key can
360be one of the following 8 strings:
361.PP
362.RS 10
363.nf
364.BR "normal " "Normal output."
365.BR "90 " "90 degrees clockwise."
366.BR "180 " "Upside down."
367.BR "270 " "90 degrees counter clockwise."
368.BR "flipped " "Horizontally flipped"
369.BR "flipped-90 " "Flipped and 90 degrees clockwise"
370.BR "flipped-180 " "Flipped upside down"
371.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
372.fi
373.RE
Rob Bradford14494622013-06-25 18:56:43 +0100374.TP 7
375.BI "seat=" name
376The logical seat name that that this output should be associated with. If this
377is set then the seat's input will be confined to the output that has the seat
378set on it. The expectation is that this functionality will be used in a
379multiheaded environment with a single compositor for multiple output and input
380configurations. The default seat is called "default" and will always be
381present. This seat can be constrained like any other.
382.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100383.SH "INPUT-METHOD SECTION"
384.TP 7
385.BI "path=" "/usr/libexec/weston-keyboard"
386sets the path of the on screen keyboard input method (string).
387.RE
388.RE
389.SH "KEYBOARD SECTION"
390This section contains the following keys:
391.TP 7
392.BI "keymap_rules=" "evdev"
393sets the keymap rules file (string). Used to map layout and model to input
394device.
395.RE
396.RE
397.TP 7
398.BI "keymap_model=" "pc105"
399sets the keymap model (string). See the Models section in
400.B "xkeyboard-config(7)."
401.RE
402.RE
403.TP 7
404.BI "keymap_layout=" "us,de,gb"
405sets the comma separated list of keyboard layout codes (string). See the
406Layouts section in
407.B "xkeyboard-config(7)."
408.RE
409.RE
410.TP 7
411.BI "keymap_variant=" "euro,,intl"
412sets the comma separated list of keyboard layout variants (string). The number
413of variants must be the same as the number of layouts above. See the Layouts
414section in
415.B "xkeyboard-config(7)."
416.RE
417.RE
418.TP 7
419.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
420sets the keymap options (string). See the Options section in
421.B "xkeyboard-config(7)."
422.RE
423.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200424.TP 7
425.BI "repeat-rate=" "40"
426sets the rate of repeating keys in characters per second (unsigned integer)
427.RE
428.RE
429.TP 7
430.BI "repeat-delay=" "400"
431sets the delay in milliseconds since key down until repeating starts (unsigned
432integer)
433.RE
434.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100435.SH "TERMINAL SECTION"
436Contains settings for the weston terminal application (weston-terminal). It
437allows to customize the font and shell of the command line interface.
438.TP 7
439.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100440sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100441to use monospace fonts. In case the font is not found, the default one is used.
442.RE
443.RE
444.TP 7
445.BI "font-size=" "14"
446sets the size of the terminal font (unsigned integer).
447.RE
448.RE
449.TP 7
450.BI "term=" "xterm-256color"
451The terminal shell (string). Sets the $TERM variable.
452.RE
453.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300454.SH "XWAYLAND SECTION"
455.TP 7
456.BI "path=" "/usr/bin/Xorg"
457sets the path to the xserver to run (string).
458.RE
459.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100460.SH "SEE ALSO"
461.BR weston (1),
462.BR weston-launch (1),
463.BR weston-drm (7),
464.BR xkeyboard-config (7)