blob: 39a06fb16013cae69232db352a3d483343af4b0a [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
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100133.BR wayland-backend.so
134.BR x11-backend.so
135.fi
136.RE
Frederic Plourde4b53f632014-10-23 22:40:03 -0400137.TP 7
Pekka Paalanen0513a952014-05-21 16:17:27 +0300138.BI "repaint-window=" N
139Set the approximate length of the repaint window in milliseconds. The repaint
140window is used to control and reduce the output latency for clients. If the
141window is longer than the output refresh period, the repaint will be done
142immediately when the previous repaint finishes, not processing client requests
143in between. If the repaint window is too short, the compositor may miss the
144target vertical blank, increasing output latency. The default value is 7
145milliseconds. The allowed range is from -10 to 1000 milliseconds. Using a
146negative value will force the compositor to always miss the target vblank.
147.TP 7
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700148.BI "gbm-format="format
149sets the GBM format used for the framebuffer for the GBM backend. Can be
150.B xrgb8888,
151.B xrgb2101010,
152.B rgb565.
153By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100154.RS
155.PP
Frederic Plourde4a84c832014-10-30 15:06:34 -0400156.RE
157.TP 7
158.BI "idle-time="seconds
159sets Weston's idle timeout in seconds. This idle timeout is the time
160after which Weston will enter an "inactive" mode and screen will fade to
Pekka Paalanenb37ac402015-06-16 13:56:57 +0300161black. A value of 0 disables the timeout.
Frederic Plourde4a84c832014-10-30 15:06:34 -0400162
163.IR Important
164: This option may also be set via Weston's '-i' command
165line option and will take precedence over the current .ini option. This
166means that if both weston.ini and command line define this idle-timeout
167time, the one specified in the command-line will be used. On the other
168hand, if none of these sets the value, default idle timeout will be
169set to 300 seconds.
170.RS
Daniel Díaz75b71972016-10-21 14:03:13 -0500171.PP
172.RE
173.TP 7
174.BI "require-input=" true
175require an input device for launch
Martin Minarikedc51c02013-01-18 18:44:29 +0100176
Jonas Ådahld3d128e2014-08-19 21:56:12 +0200177.SH "LIBINPUT SECTION"
178The
179.B libinput
180section is used to configure input devices when using the libinput input device
181backend.
182.PP
183Available configuration are:
184.TP 7
185.BI "enable_tap=" true
186enables tap to click on touchpad devices
187.RS
188.PP
189
Martin Minarikedc51c02013-01-18 18:44:29 +0100190.SH "SHELL SECTION"
191The
192.B shell
193section is used to customize the compositor. Some keys may not be handled by
194different shell plugins.
195.PP
196The entries that can appear in this section are:
197.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100198.BI "client=" file
199sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100200.I __weston_shell_client__
201is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100202.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100203.BI "background-image=" file
204sets the path for the background image file (string).
205.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200206.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300207determines how the background image is drawn (string). Can be
208.BR scale ", " scale-crop " or " tile " (default)."
209Scale means scaled to fit the output precisely, not preserving aspect ratio.
210Scale-crop preserves aspect ratio, scales the background image just big
211enough to cover the output, and centers it. The image ends up cropped from
212left and right, or top and bottom, if the aspect ratio does not match the
213output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200214.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100215.BI "background-color=" 0xAARRGGBB
216sets the color of the background (unsigned integer). The hexadecimal
217digit pairs are in order alpha, red, green, and blue.
218.TP 7
Armin Krezovićc6a55db2016-03-10 18:02:34 +0100219.BI "clock-format=" format
220sets the panel clock format (string). Can be
221.BR "none" ","
222.BR "minutes" ","
223.BR "seconds" "."
224By default, minutes format is used.
225.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100226.BI "panel-color=" 0xAARRGGBB
227sets the color of the panel (unsigned integer). The hexadecimal
228digit pairs are in order transparency, red, green, and blue. Examples:
229.PP
230.RS 10
231.nf
232.BR "0xffff0000 " "Red"
233.BR "0xff00ff00 " "Green"
234.BR "0xff0000ff " "Blue"
235.BR "0x00ffffff " "Fully transparent"
236.fi
237.RE
238.TP 7
Quentin Glidic46ffea62017-01-04 19:15:47 +0100239.BI "panel-position=" top
240sets the position of the panel (string). Can be
Jonny Lambe67118c2014-08-12 15:07:51 +0200241.B top,
Quentin Glidic46ffea62017-01-04 19:15:47 +0100242.B bottom,
243.B left,
244.B right,
Jonny Lambe67118c2014-08-12 15:07:51 +0200245.B none.
246.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100247.BI "locking=" true
248enables screen locking (boolean).
249.TP 7
250.BI "animation=" zoom
251sets the effect used for opening new windows (string). Can be
252.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700253.B fade,
254.B none.
255By default, no animation is used.
256.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200257.BI "close-animation=" fade
258sets the effect used when closing windows (string). Can be
259.B fade,
260.B none.
261By default, the fade animation is used.
262.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700263.BI "startup-animation=" fade
264sets the effect used for opening new windows (string). Can be
265.B fade,
266.B none.
267By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100268.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100269.BI "focus-animation=" dim-layer
270sets the effect used with the focused and unfocused windows. Can be
271.B dim-layer,
272.B none.
273By default, no animation is used.
274.TP 7
Bob Ham744e6532016-01-12 10:21:48 +0000275.BI "allow-zap=" true
276whether the shell should quit when the Ctrl-Alt-Backspace key combination is
277pressed
278.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100279.BI "binding-modifier=" ctrl
280sets the modifier key used for common bindings (string), such as moving
281surfaces, resizing, rotating, switching, closing and setting the transparency
282for windows, controlling the backlight and zooming the desktop. Possible values:
Bob Ham553d1242016-01-12 10:21:49 +0000283none, ctrl, alt, super (default)
Martin Minarikedc51c02013-01-18 18:44:29 +0100284.TP 7
285.BI "num-workspaces=" 6
286defines the number of workspaces (unsigned integer). The user can switch
287workspaces by using the
288binding+F1, F2 keys. If this key is not set, fall back to one workspace.
289.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100290.BI "cursor-theme=" theme
291sets the cursor theme (string).
292.TP 7
293.BI "cursor-size=" 24
294sets the cursor size (unsigned integer).
295.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100296.BI "lockscreen-icon=" path
297sets the path to lock screen icon image (string). (tablet shell only)
298.TP 7
299.BI "lockscreen=" path
300sets the path to lock screen background image (string). (tablet shell only)
301.TP 7
302.BI "homescreen=" path
303sets the path to home screen background image (string). (tablet shell only)
304.RE
305.SH "LAUNCHER SECTION"
306There can be multiple launcher sections, one for each launcher.
307.TP 7
308.BI "icon=" icon
309sets the path to icon image (string). Svg images are not currently supported.
310.TP 7
311.BI "path=" program
312sets the path to the program that is run by clicking on this launcher (string).
313It is possible to pass arguments and environment variables to the program. For
314example:
315.nf
316.in +4n
317
318path=GDK_BACKEND=wayland gnome-terminal --full-screen
319.in
320.fi
321.PP
Martin Minarikedc51c02013-01-18 18:44:29 +0100322.SH "OUTPUT SECTION"
323There can be multiple output sections, each corresponding to one output. It is
324currently only recognized by the drm and x11 backends.
325.TP 7
326.BI "name=" name
327sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500328identify the output. All X11 output names start with a letter X. All
329Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100330output names for DRM backend are listed in the
331.B "weston-launch(1)"
332output.
333Examples of usage:
334.PP
335.RS 10
336.nf
337.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
338.BR "VGA1 " "DRM backend, VGA connector no.1"
339.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500340.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100341.fi
342.RE
343.RS
344.PP
345See
346.B "weston-drm(7)"
347for more details.
348.RE
349.TP 7
350.BI "mode=" mode
351sets the output mode (string). The mode parameter is handled differently
352depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
353the weston window.
354The DRM backend accepts different modes:
355.PP
356.RS 10
357.nf
358.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
359.BR "preferred " "Uses the preferred mode"
360.BR "current " "Uses the current crt controller mode"
361.BR "off " "Disables the output"
362.fi
363.RE
364.RS
365.PP
Abdur Rehman999bc4e2017-01-01 19:46:37 +0500366Optionally, a user may specify a modeline, such as:
Martin Minarikedc51c02013-01-18 18:44:29 +0100367.PP
368.nf
369.in +4n
370.nf
371173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
372.fi
373.in
374.PP
375It consists of the refresh rate in Hz, horizontal and vertical resolution,
376options for horizontal and vertical synchronisation. The program
377.B "cvt(1)"
378can provide suitable modeline string.
379.RE
380.TP 7
381.BI "transform=" normal
382The transformation applied to screen output (string). The transform key can
383be one of the following 8 strings:
384.PP
385.RS 10
386.nf
387.BR "normal " "Normal output."
388.BR "90 " "90 degrees clockwise."
389.BR "180 " "Upside down."
390.BR "270 " "90 degrees counter clockwise."
391.BR "flipped " "Horizontally flipped"
392.BR "flipped-90 " "Flipped and 90 degrees clockwise"
393.BR "flipped-180 " "Flipped upside down"
394.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
395.fi
396.RE
Rob Bradford14494622013-06-25 18:56:43 +0100397.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200398.BI "scale=" factor
Yong Bakos425d9d92016-04-25 07:04:32 -0500399The scaling multiplier applied to the entire output, in support of high
400resolution ("HiDPI" or "retina") displays, that roughly corresponds to the
401pixel ratio of the display's physical resolution to the logical resolution.
402Applications that do not support high resolution displays typically appear tiny
403and unreadable. Weston will scale the output of such applications by this
404multiplier, to make them readable. Applications that do support their own output
405scaling can draw their content in high resolution, in which case they avoid
406compositor scaling. Weston will not scale the output of such applications, and
407they are not affected by this multiplier.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200408.RE
409.RS
410.PP
Yong Bakos425d9d92016-04-25 07:04:32 -0500411An integer, 1 by default, typically configured as 2 or higher when needed,
412denoting the scaling multiplier for the output.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200413.RE
414.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100415.BI "seat=" name
416The logical seat name that that this output should be associated with. If this
417is set then the seat's input will be confined to the output that has the seat
418set on it. The expectation is that this functionality will be used in a
419multiheaded environment with a single compositor for multiple output and input
420configurations. The default seat is called "default" and will always be
421present. This seat can be constrained like any other.
422.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100423.SH "INPUT-METHOD SECTION"
424.TP 7
425.BI "path=" "/usr/libexec/weston-keyboard"
426sets the path of the on screen keyboard input method (string).
427.RE
428.RE
429.SH "KEYBOARD SECTION"
430This section contains the following keys:
431.TP 7
432.BI "keymap_rules=" "evdev"
433sets the keymap rules file (string). Used to map layout and model to input
434device.
435.RE
436.RE
437.TP 7
438.BI "keymap_model=" "pc105"
439sets the keymap model (string). See the Models section in
440.B "xkeyboard-config(7)."
441.RE
442.RE
443.TP 7
444.BI "keymap_layout=" "us,de,gb"
445sets the comma separated list of keyboard layout codes (string). See the
446Layouts section in
447.B "xkeyboard-config(7)."
448.RE
449.RE
450.TP 7
451.BI "keymap_variant=" "euro,,intl"
452sets the comma separated list of keyboard layout variants (string). The number
453of variants must be the same as the number of layouts above. See the Layouts
454section in
455.B "xkeyboard-config(7)."
456.RE
457.RE
458.TP 7
459.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
460sets the keymap options (string). See the Options section in
461.B "xkeyboard-config(7)."
462.RE
463.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200464.TP 7
465.BI "repeat-rate=" "40"
466sets the rate of repeating keys in characters per second (unsigned integer)
467.RE
468.RE
469.TP 7
470.BI "repeat-delay=" "400"
471sets the delay in milliseconds since key down until repeating starts (unsigned
472integer)
473.RE
474.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300475.TP 7
476.BI "numlock-on=" "false"
477sets the default state of the numlock on weston startup for the backends which
478support it.
479.RE
480.RE
Bob Ham91880f12016-01-12 10:21:47 +0000481.TP 7
482.BI "vt-switching=" "true"
483Whether to allow the use of Ctrl+Alt+Fn key combinations to switch away from
484the compositor's virtual console.
485.RE
486.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100487.SH "TERMINAL SECTION"
488Contains settings for the weston terminal application (weston-terminal). It
489allows to customize the font and shell of the command line interface.
490.TP 7
491.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100492sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100493to use monospace fonts. In case the font is not found, the default one is used.
494.RE
495.RE
496.TP 7
497.BI "font-size=" "14"
498sets the size of the terminal font (unsigned integer).
499.RE
500.RE
501.TP 7
502.BI "term=" "xterm-256color"
503The terminal shell (string). Sets the $TERM variable.
504.RE
505.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300506.SH "XWAYLAND SECTION"
507.TP 7
Giulio Camuffo4a787f82015-05-10 11:29:33 +0300508.BI "path=" "/usr/bin/Xwayland"
Maksim Melnikau92de1442013-08-14 22:33:10 +0300509sets the path to the xserver to run (string).
510.RE
511.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100512.SH "SCREEN-SHARE SECTION"
513.TP 7
514.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
515--shell=fullscreen-shell.so --no-clients-resize"
516sets the command to start a fullscreen-shell server for screen sharing (string).
517.RE
518.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100519.SH "SEE ALSO"
520.BR weston (1),
521.BR weston-launch (1),
522.BR weston-drm (7),
523.BR xkeyboard-config (7)