blob: d7c4a6fe8f2909bbee768cfa0d1a30d47750b7ce [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
Armin Krezovićc6a55db2016-03-10 18:02:34 +0100215.BI "clock-format=" format
216sets the panel clock format (string). Can be
217.BR "none" ","
218.BR "minutes" ","
219.BR "seconds" "."
220By default, minutes format is used.
221.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100222.BI "panel-color=" 0xAARRGGBB
223sets the color of the panel (unsigned integer). The hexadecimal
224digit pairs are in order transparency, red, green, and blue. Examples:
225.PP
226.RS 10
227.nf
228.BR "0xffff0000 " "Red"
229.BR "0xff00ff00 " "Green"
230.BR "0xff0000ff " "Blue"
231.BR "0x00ffffff " "Fully transparent"
232.fi
233.RE
234.TP 7
Jonny Lambe67118c2014-08-12 15:07:51 +0200235.BI "panel-location=" top
236sets the location of the panel (string). Can be
237.B top,
238.B none.
239.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100240.BI "locking=" true
241enables screen locking (boolean).
242.TP 7
243.BI "animation=" zoom
244sets the effect used for opening new windows (string). Can be
245.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700246.B fade,
247.B none.
248By default, no animation is used.
249.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200250.BI "close-animation=" fade
251sets the effect used when closing windows (string). Can be
252.B fade,
253.B none.
254By default, the fade animation is used.
255.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700256.BI "startup-animation=" fade
257sets the effect used for opening new windows (string). Can be
258.B fade,
259.B none.
260By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100261.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100262.BI "focus-animation=" dim-layer
263sets the effect used with the focused and unfocused windows. Can be
264.B dim-layer,
265.B none.
266By default, no animation is used.
267.TP 7
Bob Ham744e6532016-01-12 10:21:48 +0000268.BI "allow-zap=" true
269whether the shell should quit when the Ctrl-Alt-Backspace key combination is
270pressed
271.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100272.BI "binding-modifier=" ctrl
273sets the modifier key used for common bindings (string), such as moving
274surfaces, resizing, rotating, switching, closing and setting the transparency
275for windows, controlling the backlight and zooming the desktop. Possible values:
Bob Ham553d1242016-01-12 10:21:49 +0000276none, ctrl, alt, super (default)
Martin Minarikedc51c02013-01-18 18:44:29 +0100277.TP 7
278.BI "num-workspaces=" 6
279defines the number of workspaces (unsigned integer). The user can switch
280workspaces by using the
281binding+F1, F2 keys. If this key is not set, fall back to one workspace.
282.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100283.BI "cursor-theme=" theme
284sets the cursor theme (string).
285.TP 7
286.BI "cursor-size=" 24
287sets the cursor size (unsigned integer).
288.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100289.BI "lockscreen-icon=" path
290sets the path to lock screen icon image (string). (tablet shell only)
291.TP 7
292.BI "lockscreen=" path
293sets the path to lock screen background image (string). (tablet shell only)
294.TP 7
295.BI "homescreen=" path
296sets the path to home screen background image (string). (tablet shell only)
297.RE
298.SH "LAUNCHER SECTION"
299There can be multiple launcher sections, one for each launcher.
300.TP 7
301.BI "icon=" icon
302sets the path to icon image (string). Svg images are not currently supported.
303.TP 7
304.BI "path=" program
305sets the path to the program that is run by clicking on this launcher (string).
306It is possible to pass arguments and environment variables to the program. For
307example:
308.nf
309.in +4n
310
311path=GDK_BACKEND=wayland gnome-terminal --full-screen
312.in
313.fi
314.PP
Martin Minarikedc51c02013-01-18 18:44:29 +0100315.SH "OUTPUT SECTION"
316There can be multiple output sections, each corresponding to one output. It is
317currently only recognized by the drm and x11 backends.
318.TP 7
319.BI "name=" name
320sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500321identify the output. All X11 output names start with a letter X. All
322Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100323output names for DRM backend are listed in the
324.B "weston-launch(1)"
325output.
326Examples of usage:
327.PP
328.RS 10
329.nf
330.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
331.BR "VGA1 " "DRM backend, VGA connector no.1"
332.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500333.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100334.fi
335.RE
336.RS
337.PP
338See
339.B "weston-drm(7)"
340for more details.
341.RE
342.TP 7
343.BI "mode=" mode
344sets the output mode (string). The mode parameter is handled differently
345depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
346the weston window.
347The DRM backend accepts different modes:
348.PP
349.RS 10
350.nf
351.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
352.BR "preferred " "Uses the preferred mode"
353.BR "current " "Uses the current crt controller mode"
354.BR "off " "Disables the output"
355.fi
356.RE
357.RS
358.PP
359Optionally, an user may specify a modeline, such as:
360.PP
361.nf
362.in +4n
363.nf
364173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
365.fi
366.in
367.PP
368It consists of the refresh rate in Hz, horizontal and vertical resolution,
369options for horizontal and vertical synchronisation. The program
370.B "cvt(1)"
371can provide suitable modeline string.
372.RE
373.TP 7
374.BI "transform=" normal
375The transformation applied to screen output (string). The transform key can
376be one of the following 8 strings:
377.PP
378.RS 10
379.nf
380.BR "normal " "Normal output."
381.BR "90 " "90 degrees clockwise."
382.BR "180 " "Upside down."
383.BR "270 " "90 degrees counter clockwise."
384.BR "flipped " "Horizontally flipped"
385.BR "flipped-90 " "Flipped and 90 degrees clockwise"
386.BR "flipped-180 " "Flipped upside down"
387.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
388.fi
389.RE
Rob Bradford14494622013-06-25 18:56:43 +0100390.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200391.BI "scale=" factor
Yong Bakos425d9d92016-04-25 07:04:32 -0500392The scaling multiplier applied to the entire output, in support of high
393resolution ("HiDPI" or "retina") displays, that roughly corresponds to the
394pixel ratio of the display's physical resolution to the logical resolution.
395Applications that do not support high resolution displays typically appear tiny
396and unreadable. Weston will scale the output of such applications by this
397multiplier, to make them readable. Applications that do support their own output
398scaling can draw their content in high resolution, in which case they avoid
399compositor scaling. Weston will not scale the output of such applications, and
400they are not affected by this multiplier.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200401.RE
402.RS
403.PP
Yong Bakos425d9d92016-04-25 07:04:32 -0500404An integer, 1 by default, typically configured as 2 or higher when needed,
405denoting the scaling multiplier for the output.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200406.RE
407.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100408.BI "seat=" name
409The logical seat name that that this output should be associated with. If this
410is set then the seat's input will be confined to the output that has the seat
411set on it. The expectation is that this functionality will be used in a
412multiheaded environment with a single compositor for multiple output and input
413configurations. The default seat is called "default" and will always be
414present. This seat can be constrained like any other.
415.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100416.SH "INPUT-METHOD SECTION"
417.TP 7
418.BI "path=" "/usr/libexec/weston-keyboard"
419sets the path of the on screen keyboard input method (string).
420.RE
421.RE
422.SH "KEYBOARD SECTION"
423This section contains the following keys:
424.TP 7
425.BI "keymap_rules=" "evdev"
426sets the keymap rules file (string). Used to map layout and model to input
427device.
428.RE
429.RE
430.TP 7
431.BI "keymap_model=" "pc105"
432sets the keymap model (string). See the Models section in
433.B "xkeyboard-config(7)."
434.RE
435.RE
436.TP 7
437.BI "keymap_layout=" "us,de,gb"
438sets the comma separated list of keyboard layout codes (string). See the
439Layouts section in
440.B "xkeyboard-config(7)."
441.RE
442.RE
443.TP 7
444.BI "keymap_variant=" "euro,,intl"
445sets the comma separated list of keyboard layout variants (string). The number
446of variants must be the same as the number of layouts above. See the Layouts
447section in
448.B "xkeyboard-config(7)."
449.RE
450.RE
451.TP 7
452.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
453sets the keymap options (string). See the Options section in
454.B "xkeyboard-config(7)."
455.RE
456.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200457.TP 7
458.BI "repeat-rate=" "40"
459sets the rate of repeating keys in characters per second (unsigned integer)
460.RE
461.RE
462.TP 7
463.BI "repeat-delay=" "400"
464sets the delay in milliseconds since key down until repeating starts (unsigned
465integer)
466.RE
467.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300468.TP 7
469.BI "numlock-on=" "false"
470sets the default state of the numlock on weston startup for the backends which
471support it.
472.RE
473.RE
Bob Ham91880f12016-01-12 10:21:47 +0000474.TP 7
475.BI "vt-switching=" "true"
476Whether to allow the use of Ctrl+Alt+Fn key combinations to switch away from
477the compositor's virtual console.
478.RE
479.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100480.SH "TERMINAL SECTION"
481Contains settings for the weston terminal application (weston-terminal). It
482allows to customize the font and shell of the command line interface.
483.TP 7
484.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100485sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100486to use monospace fonts. In case the font is not found, the default one is used.
487.RE
488.RE
489.TP 7
490.BI "font-size=" "14"
491sets the size of the terminal font (unsigned integer).
492.RE
493.RE
494.TP 7
495.BI "term=" "xterm-256color"
496The terminal shell (string). Sets the $TERM variable.
497.RE
498.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300499.SH "XWAYLAND SECTION"
500.TP 7
Giulio Camuffo4a787f82015-05-10 11:29:33 +0300501.BI "path=" "/usr/bin/Xwayland"
Maksim Melnikau92de1442013-08-14 22:33:10 +0300502sets the path to the xserver to run (string).
503.RE
504.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100505.SH "SCREEN-SHARE SECTION"
506.TP 7
507.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
508--shell=fullscreen-shell.so --no-clients-resize"
509sets the command to start a fullscreen-shell server for screen sharing (string).
510.RE
511.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100512.SH "SEE ALSO"
513.BR weston (1),
514.BR weston-launch (1),
515.BR weston-drm (7),
516.BR xkeyboard-config (7)