blob: 4cfefc9136629f0fcc46bed5a9f1647a1cece45e [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
Quentin Glidic6d3887b2016-07-04 14:34:48 +0200109.BI "xwayland=" true
110ask Weston to load the XWayland module (boolean).
111.RE
112.TP 7
113.BI "modules=" cms-colord.so,screen-share.so
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900114specifies the modules to load (string). Available modules in the
115.IR "__weston_modules_dir__"
116directory are:
117.PP
118.RS 10
119.nf
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900120.BR cms-colord.so
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100121.BR screen-share.so
Martin Minarikedc51c02013-01-18 18:44:29 +0100122.fi
123.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700124.TP 7
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100125.BI "backend=" headless-backend.so
126overrides defaults backend. Available backend modules in the
127.IR "__weston_modules_dir__"
128directory are:
129.PP
130.RS 10
131.nf
132.BR drm-backend.so
133.BR fbdev-backend.so
134.BR headless-backend.so
135.BR rdp-backend.so
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100136.BR wayland-backend.so
137.BR x11-backend.so
138.fi
139.RE
Frederic Plourde4b53f632014-10-23 22:40:03 -0400140.TP 7
Pekka Paalanen0513a952014-05-21 16:17:27 +0300141.BI "repaint-window=" N
142Set the approximate length of the repaint window in milliseconds. The repaint
143window is used to control and reduce the output latency for clients. If the
144window is longer than the output refresh period, the repaint will be done
145immediately when the previous repaint finishes, not processing client requests
146in between. If the repaint window is too short, the compositor may miss the
147target vertical blank, increasing output latency. The default value is 7
148milliseconds. The allowed range is from -10 to 1000 milliseconds. Using a
149negative value will force the compositor to always miss the target vblank.
150.TP 7
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700151.BI "gbm-format="format
152sets the GBM format used for the framebuffer for the GBM backend. Can be
153.B xrgb8888,
154.B xrgb2101010,
155.B rgb565.
156By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100157.RS
158.PP
Frederic Plourde4a84c832014-10-30 15:06:34 -0400159.RE
160.TP 7
161.BI "idle-time="seconds
162sets Weston's idle timeout in seconds. This idle timeout is the time
163after which Weston will enter an "inactive" mode and screen will fade to
Pekka Paalanenb37ac402015-06-16 13:56:57 +0300164black. A value of 0 disables the timeout.
Frederic Plourde4a84c832014-10-30 15:06:34 -0400165
166.IR Important
167: This option may also be set via Weston's '-i' command
168line option and will take precedence over the current .ini option. This
169means that if both weston.ini and command line define this idle-timeout
170time, the one specified in the command-line will be used. On the other
171hand, if none of these sets the value, default idle timeout will be
172set to 300 seconds.
173.RS
Daniel Díaz75b71972016-10-21 14:03:13 -0500174.PP
175.RE
176.TP 7
177.BI "require-input=" true
178require an input device for launch
Pekka Paalanen65e57c92017-03-13 15:25:42 +0200179.TP 7
180.BI "pageflip-timeout="milliseconds
181sets Weston's pageflip timeout in milliseconds. This sets a timer to exit
182gracefully with a log message and an exit code of 1 in case the DRM driver is
183non-responsive. Setting it to 0 disables this feature.
Martin Minarikedc51c02013-01-18 18:44:29 +0100184
Jonas Ådahld3d128e2014-08-19 21:56:12 +0200185.SH "LIBINPUT SECTION"
186The
187.B libinput
188section is used to configure input devices when using the libinput input device
189backend.
190.PP
191Available configuration are:
192.TP 7
193.BI "enable_tap=" true
194enables tap to click on touchpad devices
195.RS
196.PP
197
Martin Minarikedc51c02013-01-18 18:44:29 +0100198.SH "SHELL SECTION"
199The
200.B shell
201section is used to customize the compositor. Some keys may not be handled by
202different shell plugins.
203.PP
204The entries that can appear in this section are:
205.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100206.BI "client=" file
207sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100208.I __weston_shell_client__
209is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100210.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100211.BI "background-image=" file
212sets the path for the background image file (string).
213.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200214.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300215determines how the background image is drawn (string). Can be
216.BR scale ", " scale-crop " or " tile " (default)."
217Scale means scaled to fit the output precisely, not preserving aspect ratio.
218Scale-crop preserves aspect ratio, scales the background image just big
219enough to cover the output, and centers it. The image ends up cropped from
220left and right, or top and bottom, if the aspect ratio does not match the
221output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200222.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100223.BI "background-color=" 0xAARRGGBB
224sets the color of the background (unsigned integer). The hexadecimal
225digit pairs are in order alpha, red, green, and blue.
226.TP 7
Armin Krezovićc6a55db2016-03-10 18:02:34 +0100227.BI "clock-format=" format
228sets the panel clock format (string). Can be
229.BR "none" ","
230.BR "minutes" ","
231.BR "seconds" "."
232By default, minutes format is used.
233.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100234.BI "panel-color=" 0xAARRGGBB
235sets the color of the panel (unsigned integer). The hexadecimal
236digit pairs are in order transparency, red, green, and blue. Examples:
237.PP
238.RS 10
239.nf
240.BR "0xffff0000 " "Red"
241.BR "0xff00ff00 " "Green"
242.BR "0xff0000ff " "Blue"
243.BR "0x00ffffff " "Fully transparent"
244.fi
245.RE
246.TP 7
Quentin Glidic46ffea62017-01-04 19:15:47 +0100247.BI "panel-position=" top
248sets the position of the panel (string). Can be
Jonny Lambe67118c2014-08-12 15:07:51 +0200249.B top,
Quentin Glidic46ffea62017-01-04 19:15:47 +0100250.B bottom,
251.B left,
252.B right,
Jonny Lambe67118c2014-08-12 15:07:51 +0200253.B none.
254.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100255.BI "locking=" true
256enables screen locking (boolean).
257.TP 7
258.BI "animation=" zoom
259sets the effect used for opening new windows (string). Can be
260.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700261.B fade,
262.B none.
263By default, no animation is used.
264.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200265.BI "close-animation=" fade
266sets the effect used when closing windows (string). Can be
267.B fade,
268.B none.
269By default, the fade animation is used.
270.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700271.BI "startup-animation=" fade
272sets the effect used for opening new windows (string). Can be
273.B fade,
274.B none.
275By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100276.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100277.BI "focus-animation=" dim-layer
278sets the effect used with the focused and unfocused windows. Can be
279.B dim-layer,
280.B none.
281By default, no animation is used.
282.TP 7
Bob Ham744e6532016-01-12 10:21:48 +0000283.BI "allow-zap=" true
284whether the shell should quit when the Ctrl-Alt-Backspace key combination is
285pressed
286.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100287.BI "binding-modifier=" ctrl
288sets the modifier key used for common bindings (string), such as moving
289surfaces, resizing, rotating, switching, closing and setting the transparency
290for windows, controlling the backlight and zooming the desktop. Possible values:
Bob Ham553d1242016-01-12 10:21:49 +0000291none, ctrl, alt, super (default)
Martin Minarikedc51c02013-01-18 18:44:29 +0100292.TP 7
293.BI "num-workspaces=" 6
294defines the number of workspaces (unsigned integer). The user can switch
295workspaces by using the
296binding+F1, F2 keys. If this key is not set, fall back to one workspace.
297.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100298.BI "cursor-theme=" theme
299sets the cursor theme (string).
300.TP 7
301.BI "cursor-size=" 24
302sets the cursor size (unsigned integer).
303.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100304.BI "lockscreen-icon=" path
305sets the path to lock screen icon image (string). (tablet shell only)
306.TP 7
307.BI "lockscreen=" path
308sets the path to lock screen background image (string). (tablet shell only)
309.TP 7
310.BI "homescreen=" path
311sets the path to home screen background image (string). (tablet shell only)
312.RE
313.SH "LAUNCHER SECTION"
314There can be multiple launcher sections, one for each launcher.
315.TP 7
316.BI "icon=" icon
317sets the path to icon image (string). Svg images are not currently supported.
318.TP 7
319.BI "path=" program
320sets the path to the program that is run by clicking on this launcher (string).
321It is possible to pass arguments and environment variables to the program. For
322example:
323.nf
324.in +4n
325
326path=GDK_BACKEND=wayland gnome-terminal --full-screen
327.in
328.fi
329.PP
Martin Minarikedc51c02013-01-18 18:44:29 +0100330.SH "OUTPUT SECTION"
331There can be multiple output sections, each corresponding to one output. It is
332currently only recognized by the drm and x11 backends.
333.TP 7
334.BI "name=" name
335sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500336identify the output. All X11 output names start with a letter X. All
337Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100338output names for DRM backend are listed in the
339.B "weston-launch(1)"
340output.
341Examples of usage:
342.PP
343.RS 10
344.nf
345.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
346.BR "VGA1 " "DRM backend, VGA connector no.1"
347.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500348.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100349.fi
350.RE
351.RS
352.PP
353See
354.B "weston-drm(7)"
355for more details.
356.RE
357.TP 7
358.BI "mode=" mode
359sets the output mode (string). The mode parameter is handled differently
360depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
361the weston window.
362The DRM backend accepts different modes:
363.PP
364.RS 10
365.nf
366.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
367.BR "preferred " "Uses the preferred mode"
368.BR "current " "Uses the current crt controller mode"
369.BR "off " "Disables the output"
370.fi
371.RE
372.RS
373.PP
Abdur Rehman999bc4e2017-01-01 19:46:37 +0500374Optionally, a user may specify a modeline, such as:
Martin Minarikedc51c02013-01-18 18:44:29 +0100375.PP
376.nf
377.in +4n
378.nf
379173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
380.fi
381.in
382.PP
383It consists of the refresh rate in Hz, horizontal and vertical resolution,
384options for horizontal and vertical synchronisation. The program
385.B "cvt(1)"
386can provide suitable modeline string.
387.RE
388.TP 7
389.BI "transform=" normal
390The transformation applied to screen output (string). The transform key can
391be one of the following 8 strings:
392.PP
393.RS 10
394.nf
395.BR "normal " "Normal output."
396.BR "90 " "90 degrees clockwise."
397.BR "180 " "Upside down."
398.BR "270 " "90 degrees counter clockwise."
399.BR "flipped " "Horizontally flipped"
400.BR "flipped-90 " "Flipped and 90 degrees clockwise"
401.BR "flipped-180 " "Flipped upside down"
402.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
403.fi
404.RE
Rob Bradford14494622013-06-25 18:56:43 +0100405.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200406.BI "scale=" factor
Yong Bakos425d9d92016-04-25 07:04:32 -0500407The scaling multiplier applied to the entire output, in support of high
408resolution ("HiDPI" or "retina") displays, that roughly corresponds to the
409pixel ratio of the display's physical resolution to the logical resolution.
410Applications that do not support high resolution displays typically appear tiny
411and unreadable. Weston will scale the output of such applications by this
412multiplier, to make them readable. Applications that do support their own output
413scaling can draw their content in high resolution, in which case they avoid
414compositor scaling. Weston will not scale the output of such applications, and
415they are not affected by this multiplier.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200416.RE
417.RS
418.PP
Yong Bakos425d9d92016-04-25 07:04:32 -0500419An integer, 1 by default, typically configured as 2 or higher when needed,
420denoting the scaling multiplier for the output.
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200421.RE
422.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100423.BI "seat=" name
424The logical seat name that that this output should be associated with. If this
425is set then the seat's input will be confined to the output that has the seat
426set on it. The expectation is that this functionality will be used in a
427multiheaded environment with a single compositor for multiple output and input
428configurations. The default seat is called "default" and will always be
429present. This seat can be constrained like any other.
430.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100431.SH "INPUT-METHOD SECTION"
432.TP 7
433.BI "path=" "/usr/libexec/weston-keyboard"
434sets the path of the on screen keyboard input method (string).
435.RE
436.RE
437.SH "KEYBOARD SECTION"
438This section contains the following keys:
439.TP 7
440.BI "keymap_rules=" "evdev"
441sets the keymap rules file (string). Used to map layout and model to input
442device.
443.RE
444.RE
445.TP 7
446.BI "keymap_model=" "pc105"
447sets the keymap model (string). See the Models section in
448.B "xkeyboard-config(7)."
449.RE
450.RE
451.TP 7
452.BI "keymap_layout=" "us,de,gb"
453sets the comma separated list of keyboard layout codes (string). See the
454Layouts section in
455.B "xkeyboard-config(7)."
456.RE
457.RE
458.TP 7
459.BI "keymap_variant=" "euro,,intl"
460sets the comma separated list of keyboard layout variants (string). The number
461of variants must be the same as the number of layouts above. See the Layouts
462section in
463.B "xkeyboard-config(7)."
464.RE
465.RE
466.TP 7
467.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
468sets the keymap options (string). See the Options section in
469.B "xkeyboard-config(7)."
470.RE
471.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200472.TP 7
473.BI "repeat-rate=" "40"
474sets the rate of repeating keys in characters per second (unsigned integer)
475.RE
476.RE
477.TP 7
478.BI "repeat-delay=" "400"
479sets the delay in milliseconds since key down until repeating starts (unsigned
480integer)
481.RE
482.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300483.TP 7
484.BI "numlock-on=" "false"
485sets the default state of the numlock on weston startup for the backends which
486support it.
487.RE
488.RE
Bob Ham91880f12016-01-12 10:21:47 +0000489.TP 7
490.BI "vt-switching=" "true"
491Whether to allow the use of Ctrl+Alt+Fn key combinations to switch away from
492the compositor's virtual console.
493.RE
494.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100495.SH "TERMINAL SECTION"
496Contains settings for the weston terminal application (weston-terminal). It
497allows to customize the font and shell of the command line interface.
498.TP 7
499.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100500sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100501to use monospace fonts. In case the font is not found, the default one is used.
502.RE
503.RE
504.TP 7
505.BI "font-size=" "14"
506sets the size of the terminal font (unsigned integer).
507.RE
508.RE
509.TP 7
510.BI "term=" "xterm-256color"
511The terminal shell (string). Sets the $TERM variable.
512.RE
513.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300514.SH "XWAYLAND SECTION"
515.TP 7
Giulio Camuffo4a787f82015-05-10 11:29:33 +0300516.BI "path=" "/usr/bin/Xwayland"
Maksim Melnikau92de1442013-08-14 22:33:10 +0300517sets the path to the xserver to run (string).
518.RE
519.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100520.SH "SCREEN-SHARE SECTION"
521.TP 7
522.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
523--shell=fullscreen-shell.so --no-clients-resize"
524sets the command to start a fullscreen-shell server for screen sharing (string).
525.RE
526.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100527.SH "SEE ALSO"
528.BR weston (1),
529.BR weston-launch (1),
530.BR weston-drm (7),
531.BR xkeyboard-config (7)