blob: 6ebe68a333e9663554bc892a7c7042ba7303bf04 [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
Frederic Plourde4a84c832014-10-30 15:06:34 -040072.BR "core " "The core modules and options"
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"
Martin Minarikedc51c02013-01-18 18:44:29 +010076.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"
Andrew Wedgburyc34b6772014-06-26 16:31:43 +010081.BR "screen-share " "Screen sharing 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
Frederic Plourde4a84c832014-10-30 15:06:34 -040094section is used to select the startup compositor modules and general options.
Martin Minarikedc51c02013-01-18 18:44:29 +010095.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
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900109.BI "modules=" xwayland.so,cms-colord.so
110specifies the modules to load (string). Available modules in the
111.IR "__weston_modules_dir__"
112directory are:
113.PP
114.RS 10
115.nf
Martin Minarikedc51c02013-01-18 18:44:29 +0100116.BR xwayland.so
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900117.BR cms-colord.so
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100118.BR screen-share.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.BI "backend=" headless-backend.so
123overrides defaults backend. Available backend modules in the
124.IR "__weston_modules_dir__"
125directory are:
126.PP
127.RS 10
128.nf
129.BR drm-backend.so
130.BR fbdev-backend.so
131.BR headless-backend.so
132.BR rdp-backend.so
133.BR rpi-backend.so
134.BR wayland-backend.so
135.BR x11-backend.so
136.fi
137.RE
Frederic Plourde4b53f632014-10-23 22:40:03 -0400138.TP 7
Pekka Paalanen0513a952014-05-21 16:17:27 +0300139.BI "repaint-window=" N
140Set the approximate length of the repaint window in milliseconds. The repaint
141window is used to control and reduce the output latency for clients. If the
142window is longer than the output refresh period, the repaint will be done
143immediately when the previous repaint finishes, not processing client requests
144in between. If the repaint window is too short, the compositor may miss the
145target vertical blank, increasing output latency. The default value is 7
146milliseconds. The allowed range is from -10 to 1000 milliseconds. Using a
147negative value will force the compositor to always miss the target vblank.
148.TP 7
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700149.BI "gbm-format="format
150sets the GBM format used for the framebuffer for the GBM backend. Can be
151.B xrgb8888,
152.B xrgb2101010,
153.B rgb565.
154By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100155.RS
156.PP
Frederic Plourde4a84c832014-10-30 15:06:34 -0400157.RE
158.TP 7
159.BI "idle-time="seconds
160sets Weston's idle timeout in seconds. This idle timeout is the time
161after which Weston will enter an "inactive" mode and screen will fade to
Pekka Paalanenb37ac402015-06-16 13:56:57 +0300162black. A value of 0 disables the timeout.
Frederic Plourde4a84c832014-10-30 15:06:34 -0400163
164.IR Important
165: This option may also be set via Weston's '-i' command
166line option and will take precedence over the current .ini option. This
167means that if both weston.ini and command line define this idle-timeout
168time, the one specified in the command-line will be used. On the other
169hand, if none of these sets the value, default idle timeout will be
170set to 300 seconds.
171.RS
Martin Minarikedc51c02013-01-18 18:44:29 +0100172
Jonas Ådahld3d128e2014-08-19 21:56:12 +0200173.SH "LIBINPUT SECTION"
174The
175.B libinput
176section is used to configure input devices when using the libinput input device
177backend.
178.PP
179Available configuration are:
180.TP 7
181.BI "enable_tap=" true
182enables tap to click on touchpad devices
183.RS
184.PP
185
Martin Minarikedc51c02013-01-18 18:44:29 +0100186.SH "SHELL SECTION"
187The
188.B shell
189section is used to customize the compositor. Some keys may not be handled by
190different shell plugins.
191.PP
192The entries that can appear in this section are:
193.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100194.BI "client=" file
195sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100196.I __weston_shell_client__
197is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100198.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100199.BI "background-image=" file
200sets the path for the background image file (string).
201.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200202.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300203determines how the background image is drawn (string). Can be
204.BR scale ", " scale-crop " or " tile " (default)."
205Scale means scaled to fit the output precisely, not preserving aspect ratio.
206Scale-crop preserves aspect ratio, scales the background image just big
207enough to cover the output, and centers it. The image ends up cropped from
208left and right, or top and bottom, if the aspect ratio does not match the
209output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200210.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100211.BI "background-color=" 0xAARRGGBB
212sets the color of the background (unsigned integer). The hexadecimal
213digit pairs are in order alpha, red, green, and blue.
214.TP 7
215.BI "panel-color=" 0xAARRGGBB
216sets the color of the panel (unsigned integer). The hexadecimal
217digit pairs are in order transparency, red, green, and blue. Examples:
218.PP
219.RS 10
220.nf
221.BR "0xffff0000 " "Red"
222.BR "0xff00ff00 " "Green"
223.BR "0xff0000ff " "Blue"
224.BR "0x00ffffff " "Fully transparent"
225.fi
226.RE
227.TP 7
Jonny Lambe67118c2014-08-12 15:07:51 +0200228.BI "panel-location=" top
229sets the location of the panel (string). Can be
230.B top,
231.B none.
232.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100233.BI "locking=" true
234enables screen locking (boolean).
235.TP 7
236.BI "animation=" zoom
237sets the effect used for opening new windows (string). Can be
238.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700239.B fade,
240.B none.
241By default, no animation is used.
242.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200243.BI "close-animation=" fade
244sets the effect used when closing windows (string). Can be
245.B fade,
246.B none.
247By default, the fade animation is used.
248.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700249.BI "startup-animation=" fade
250sets the effect used for opening new windows (string). Can be
251.B fade,
252.B none.
253By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100254.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100255.BI "focus-animation=" dim-layer
256sets the effect used with the focused and unfocused windows. Can be
257.B dim-layer,
258.B none.
259By default, no animation is used.
260.TP 7
Bob Ham744e6532016-01-12 10:21:48 +0000261.BI "allow-zap=" true
262whether the shell should quit when the Ctrl-Alt-Backspace key combination is
263pressed
264.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100265.BI "binding-modifier=" ctrl
266sets the modifier key used for common bindings (string), such as moving
267surfaces, resizing, rotating, switching, closing and setting the transparency
268for windows, controlling the backlight and zooming the desktop. Possible values:
269ctrl, alt, super (default)
270.TP 7
271.BI "num-workspaces=" 6
272defines the number of workspaces (unsigned integer). The user can switch
273workspaces by using the
274binding+F1, F2 keys. If this key is not set, fall back to one workspace.
275.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100276.BI "cursor-theme=" theme
277sets the cursor theme (string).
278.TP 7
279.BI "cursor-size=" 24
280sets the cursor size (unsigned integer).
281.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100282.BI "lockscreen-icon=" path
283sets the path to lock screen icon image (string). (tablet shell only)
284.TP 7
285.BI "lockscreen=" path
286sets the path to lock screen background image (string). (tablet shell only)
287.TP 7
288.BI "homescreen=" path
289sets the path to home screen background image (string). (tablet shell only)
290.RE
291.SH "LAUNCHER SECTION"
292There can be multiple launcher sections, one for each launcher.
293.TP 7
294.BI "icon=" icon
295sets the path to icon image (string). Svg images are not currently supported.
296.TP 7
297.BI "path=" program
298sets the path to the program that is run by clicking on this launcher (string).
299It is possible to pass arguments and environment variables to the program. For
300example:
301.nf
302.in +4n
303
304path=GDK_BACKEND=wayland gnome-terminal --full-screen
305.in
306.fi
307.PP
Martin Minarikedc51c02013-01-18 18:44:29 +0100308.SH "OUTPUT SECTION"
309There can be multiple output sections, each corresponding to one output. It is
310currently only recognized by the drm and x11 backends.
311.TP 7
312.BI "name=" name
313sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500314identify the output. All X11 output names start with a letter X. All
315Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100316output names for DRM backend are listed in the
317.B "weston-launch(1)"
318output.
319Examples of usage:
320.PP
321.RS 10
322.nf
323.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
324.BR "VGA1 " "DRM backend, VGA connector no.1"
325.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500326.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100327.fi
328.RE
329.RS
330.PP
331See
332.B "weston-drm(7)"
333for more details.
334.RE
335.TP 7
336.BI "mode=" mode
337sets the output mode (string). The mode parameter is handled differently
338depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
339the weston window.
340The DRM backend accepts different modes:
341.PP
342.RS 10
343.nf
344.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
345.BR "preferred " "Uses the preferred mode"
346.BR "current " "Uses the current crt controller mode"
347.BR "off " "Disables the output"
348.fi
349.RE
350.RS
351.PP
352Optionally, an user may specify a modeline, such as:
353.PP
354.nf
355.in +4n
356.nf
357173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
358.fi
359.in
360.PP
361It consists of the refresh rate in Hz, horizontal and vertical resolution,
362options for horizontal and vertical synchronisation. The program
363.B "cvt(1)"
364can provide suitable modeline string.
365.RE
366.TP 7
367.BI "transform=" normal
368The transformation applied to screen output (string). The transform key can
369be one of the following 8 strings:
370.PP
371.RS 10
372.nf
373.BR "normal " "Normal output."
374.BR "90 " "90 degrees clockwise."
375.BR "180 " "Upside down."
376.BR "270 " "90 degrees counter clockwise."
377.BR "flipped " "Horizontally flipped"
378.BR "flipped-90 " "Flipped and 90 degrees clockwise"
379.BR "flipped-180 " "Flipped upside down"
380.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
381.fi
382.RE
Rob Bradford14494622013-06-25 18:56:43 +0100383.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200384.BI "scale=" factor
385An integer, 1 by default, typically configured as 2 when needed, denoting
386the scale factor of the output. Applications that support it render at the
387appropriate scale. For other applications, weston will scale their output
388by this factor.
389.RE
390.RS
391.PP
392Use a value of 2 for outputs with high resolution. Such displays are often
393called "HiDPI" or "retina" displays.
394.RE
395.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100396.BI "seat=" name
397The logical seat name that that this output should be associated with. If this
398is set then the seat's input will be confined to the output that has the seat
399set on it. The expectation is that this functionality will be used in a
400multiheaded environment with a single compositor for multiple output and input
401configurations. The default seat is called "default" and will always be
402present. This seat can be constrained like any other.
403.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100404.SH "INPUT-METHOD SECTION"
405.TP 7
406.BI "path=" "/usr/libexec/weston-keyboard"
407sets the path of the on screen keyboard input method (string).
408.RE
409.RE
410.SH "KEYBOARD SECTION"
411This section contains the following keys:
412.TP 7
413.BI "keymap_rules=" "evdev"
414sets the keymap rules file (string). Used to map layout and model to input
415device.
416.RE
417.RE
418.TP 7
419.BI "keymap_model=" "pc105"
420sets the keymap model (string). See the Models section in
421.B "xkeyboard-config(7)."
422.RE
423.RE
424.TP 7
425.BI "keymap_layout=" "us,de,gb"
426sets the comma separated list of keyboard layout codes (string). See the
427Layouts section in
428.B "xkeyboard-config(7)."
429.RE
430.RE
431.TP 7
432.BI "keymap_variant=" "euro,,intl"
433sets the comma separated list of keyboard layout variants (string). The number
434of variants must be the same as the number of layouts above. See the Layouts
435section in
436.B "xkeyboard-config(7)."
437.RE
438.RE
439.TP 7
440.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
441sets the keymap options (string). See the Options section in
442.B "xkeyboard-config(7)."
443.RE
444.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200445.TP 7
446.BI "repeat-rate=" "40"
447sets the rate of repeating keys in characters per second (unsigned integer)
448.RE
449.RE
450.TP 7
451.BI "repeat-delay=" "400"
452sets the delay in milliseconds since key down until repeating starts (unsigned
453integer)
454.RE
455.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300456.TP 7
457.BI "numlock-on=" "false"
458sets the default state of the numlock on weston startup for the backends which
459support it.
460.RE
461.RE
Bob Ham91880f12016-01-12 10:21:47 +0000462.TP 7
463.BI "vt-switching=" "true"
464Whether to allow the use of Ctrl+Alt+Fn key combinations to switch away from
465the compositor's virtual console.
466.RE
467.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100468.SH "TERMINAL SECTION"
469Contains settings for the weston terminal application (weston-terminal). It
470allows to customize the font and shell of the command line interface.
471.TP 7
472.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100473sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100474to use monospace fonts. In case the font is not found, the default one is used.
475.RE
476.RE
477.TP 7
478.BI "font-size=" "14"
479sets the size of the terminal font (unsigned integer).
480.RE
481.RE
482.TP 7
483.BI "term=" "xterm-256color"
484The terminal shell (string). Sets the $TERM variable.
485.RE
486.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300487.SH "XWAYLAND SECTION"
488.TP 7
Giulio Camuffo4a787f82015-05-10 11:29:33 +0300489.BI "path=" "/usr/bin/Xwayland"
Maksim Melnikau92de1442013-08-14 22:33:10 +0300490sets the path to the xserver to run (string).
491.RE
492.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100493.SH "SCREEN-SHARE SECTION"
494.TP 7
495.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
496--shell=fullscreen-shell.so --no-clients-resize"
497sets the command to start a fullscreen-shell server for screen sharing (string).
498.RE
499.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100500.SH "SEE ALSO"
501.BR weston (1),
502.BR weston-launch (1),
503.BR weston-drm (7),
504.BR xkeyboard-config (7)