blob: d7df0e4cbbf5ac168e541c54331a3c972bb4a4b6 [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"
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"
Andrew Wedgburyc34b6772014-06-26 16:31:43 +010082.BR "screen-share " "Screen sharing options"
Martin Minarikedc51c02013-01-18 18:44:29 +010083.fi
84.RE
85.PP
86Possible value types are string, signed and unsigned 32-bit
87integer, and boolean. Strings must not be quoted, do not support any
88escape sequences, and run till the end of the line. Integers can
89be given in decimal (e.g. 123), octal (e.g. 0173), and hexadecimal
90(e.g. 0x7b) form. Boolean values can be only 'true' or 'false'.
91.RE
92.SH "CORE SECTION"
93The
94.B core
Frederic Plourde4a84c832014-10-30 15:06:34 -040095section is used to select the startup compositor modules and general options.
Martin Minarikedc51c02013-01-18 18:44:29 +010096.TP 7
Nobuhiko Tanibata88419172014-02-10 12:15:11 +090097.BI "shell=" desktop-shell.so
98specifies a shell to load (string). This can be used to load your own
99implemented shell or one with Weston as default. Available shells
100in the
Martin Minarikedc51c02013-01-18 18:44:29 +0100101.IR "__weston_modules_dir__"
102directory are:
103.PP
104.RS 10
105.nf
106.BR desktop-shell.so
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900107.fi
108.RE
109.TP 7
Nobuhiko Tanibata88419172014-02-10 12:15:11 +0900110.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
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100119.BR screen-share.so
Martin Minarikedc51c02013-01-18 18:44:29 +0100120.fi
121.RE
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700122.TP 7
Lubomir Rintelba44c6b2013-11-15 14:18:15 +0100123.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
Frederic Plourde4b53f632014-10-23 22:40:03 -0400139.TP 7
Pekka Paalanen0513a952014-05-21 16:17:27 +0300140.BI "repaint-window=" N
141Set the approximate length of the repaint window in milliseconds. The repaint
142window is used to control and reduce the output latency for clients. If the
143window is longer than the output refresh period, the repaint will be done
144immediately when the previous repaint finishes, not processing client requests
145in between. If the repaint window is too short, the compositor may miss the
146target vertical blank, increasing output latency. The default value is 7
147milliseconds. The allowed range is from -10 to 1000 milliseconds. Using a
148negative value will force the compositor to always miss the target vblank.
149.TP 7
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700150.BI "gbm-format="format
151sets the GBM format used for the framebuffer for the GBM backend. Can be
152.B xrgb8888,
153.B xrgb2101010,
154.B rgb565.
155By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100156.RS
157.PP
Frederic Plourde4a84c832014-10-30 15:06:34 -0400158.RE
159.TP 7
160.BI "idle-time="seconds
161sets Weston's idle timeout in seconds. This idle timeout is the time
162after which Weston will enter an "inactive" mode and screen will fade to
163black. Note that a screensaver may also start at this moment after fade-out
164(if enabled in the SCREENSAVER section below), but the current idle-time
Pekka Paalanenb4e976a2014-11-21 16:11:44 +0200165option has nothing to do with screensavers. A value of 0 disables the
166timeout.
Frederic Plourde4a84c832014-10-30 15:06:34 -0400167
168.IR Important
169: This option may also be set via Weston's '-i' command
170line option and will take precedence over the current .ini option. This
171means that if both weston.ini and command line define this idle-timeout
172time, the one specified in the command-line will be used. On the other
173hand, if none of these sets the value, default idle timeout will be
174set to 300 seconds.
175.RS
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
219.BI "panel-color=" 0xAARRGGBB
220sets the color of the panel (unsigned integer). The hexadecimal
221digit pairs are in order transparency, red, green, and blue. Examples:
222.PP
223.RS 10
224.nf
225.BR "0xffff0000 " "Red"
226.BR "0xff00ff00 " "Green"
227.BR "0xff0000ff " "Blue"
228.BR "0x00ffffff " "Fully transparent"
229.fi
230.RE
231.TP 7
Jonny Lambe67118c2014-08-12 15:07:51 +0200232.BI "panel-location=" top
233sets the location of the panel (string). Can be
234.B top,
235.B none.
236.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100237.BI "locking=" true
238enables screen locking (boolean).
239.TP 7
240.BI "animation=" zoom
241sets the effect used for opening new windows (string). Can be
242.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700243.B fade,
244.B none.
245By default, no animation is used.
246.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200247.BI "close-animation=" fade
248sets the effect used when closing windows (string). Can be
249.B fade,
250.B none.
251By default, the fade animation is used.
252.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700253.BI "startup-animation=" fade
254sets the effect used for opening new windows (string). Can be
255.B fade,
256.B none.
257By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100258.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100259.BI "focus-animation=" dim-layer
260sets the effect used with the focused and unfocused windows. Can be
261.B dim-layer,
262.B none.
263By default, no animation is used.
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
308.RE
309.SH "SCREENSAVER SECTION"
310The
311.B screensaver
312section is used to select and schedule a screensaver.
313The
314.B screensaver
315section is optional, as are all of the entries that may be specified in
316it.
317.TP 7
318.BI "path=" /usr/libexec/weston-screensaver
319This instructs the compositor to use the selected screensaver client on a given
320path (string). If this line is missing or commented out, the screensaver in
321.B "weston(1)"
322is disabled.
323.RE
324.TP 7
325.BI "duration=" 600
Frederic Plourde4a84c832014-10-30 15:06:34 -0400326The time in seconds until the screensaver disappears in order to save power
Martin Minarikedc51c02013-01-18 18:44:29 +0100327(unsigned integer).
328.SH "OUTPUT SECTION"
329There can be multiple output sections, each corresponding to one output. It is
330currently only recognized by the drm and x11 backends.
331.TP 7
332.BI "name=" name
333sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500334identify the output. All X11 output names start with a letter X. All
335Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100336output names for DRM backend are listed in the
337.B "weston-launch(1)"
338output.
339Examples of usage:
340.PP
341.RS 10
342.nf
343.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
344.BR "VGA1 " "DRM backend, VGA connector no.1"
345.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500346.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100347.fi
348.RE
349.RS
350.PP
351See
352.B "weston-drm(7)"
353for more details.
354.RE
355.TP 7
356.BI "mode=" mode
357sets the output mode (string). The mode parameter is handled differently
358depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
359the weston window.
360The DRM backend accepts different modes:
361.PP
362.RS 10
363.nf
364.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
365.BR "preferred " "Uses the preferred mode"
366.BR "current " "Uses the current crt controller mode"
367.BR "off " "Disables the output"
368.fi
369.RE
370.RS
371.PP
372Optionally, an user may specify a modeline, such as:
373.PP
374.nf
375.in +4n
376.nf
377173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
378.fi
379.in
380.PP
381It consists of the refresh rate in Hz, horizontal and vertical resolution,
382options for horizontal and vertical synchronisation. The program
383.B "cvt(1)"
384can provide suitable modeline string.
385.RE
386.TP 7
387.BI "transform=" normal
388The transformation applied to screen output (string). The transform key can
389be one of the following 8 strings:
390.PP
391.RS 10
392.nf
393.BR "normal " "Normal output."
394.BR "90 " "90 degrees clockwise."
395.BR "180 " "Upside down."
396.BR "270 " "90 degrees counter clockwise."
397.BR "flipped " "Horizontally flipped"
398.BR "flipped-90 " "Flipped and 90 degrees clockwise"
399.BR "flipped-180 " "Flipped upside down"
400.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
401.fi
402.RE
Rob Bradford14494622013-06-25 18:56:43 +0100403.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200404.BI "scale=" factor
405An integer, 1 by default, typically configured as 2 when needed, denoting
406the scale factor of the output. Applications that support it render at the
407appropriate scale. For other applications, weston will scale their output
408by this factor.
409.RE
410.RS
411.PP
412Use a value of 2 for outputs with high resolution. Such displays are often
413called "HiDPI" or "retina" displays.
414.RE
415.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100416.BI "seat=" name
417The logical seat name that that this output should be associated with. If this
418is set then the seat's input will be confined to the output that has the seat
419set on it. The expectation is that this functionality will be used in a
420multiheaded environment with a single compositor for multiple output and input
421configurations. The default seat is called "default" and will always be
422present. This seat can be constrained like any other.
423.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100424.SH "INPUT-METHOD SECTION"
425.TP 7
426.BI "path=" "/usr/libexec/weston-keyboard"
427sets the path of the on screen keyboard input method (string).
428.RE
429.RE
430.SH "KEYBOARD SECTION"
431This section contains the following keys:
432.TP 7
433.BI "keymap_rules=" "evdev"
434sets the keymap rules file (string). Used to map layout and model to input
435device.
436.RE
437.RE
438.TP 7
439.BI "keymap_model=" "pc105"
440sets the keymap model (string). See the Models section in
441.B "xkeyboard-config(7)."
442.RE
443.RE
444.TP 7
445.BI "keymap_layout=" "us,de,gb"
446sets the comma separated list of keyboard layout codes (string). See the
447Layouts section in
448.B "xkeyboard-config(7)."
449.RE
450.RE
451.TP 7
452.BI "keymap_variant=" "euro,,intl"
453sets the comma separated list of keyboard layout variants (string). The number
454of variants must be the same as the number of layouts above. See the Layouts
455section in
456.B "xkeyboard-config(7)."
457.RE
458.RE
459.TP 7
460.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
461sets the keymap options (string). See the Options section in
462.B "xkeyboard-config(7)."
463.RE
464.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200465.TP 7
466.BI "repeat-rate=" "40"
467sets the rate of repeating keys in characters per second (unsigned integer)
468.RE
469.RE
470.TP 7
471.BI "repeat-delay=" "400"
472sets the delay in milliseconds since key down until repeating starts (unsigned
473integer)
474.RE
475.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300476.TP 7
477.BI "numlock-on=" "false"
478sets the default state of the numlock on weston startup for the backends which
479support it.
480.RE
481.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100482.SH "TERMINAL SECTION"
483Contains settings for the weston terminal application (weston-terminal). It
484allows to customize the font and shell of the command line interface.
485.TP 7
486.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100487sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100488to use monospace fonts. In case the font is not found, the default one is used.
489.RE
490.RE
491.TP 7
492.BI "font-size=" "14"
493sets the size of the terminal font (unsigned integer).
494.RE
495.RE
496.TP 7
497.BI "term=" "xterm-256color"
498The terminal shell (string). Sets the $TERM variable.
499.RE
500.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300501.SH "XWAYLAND SECTION"
502.TP 7
503.BI "path=" "/usr/bin/Xorg"
504sets the path to the xserver to run (string).
505.RE
506.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100507.SH "SCREEN-SHARE SECTION"
508.TP 7
509.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
510--shell=fullscreen-shell.so --no-clients-resize"
511sets the command to start a fullscreen-shell server for screen sharing (string).
512.RE
513.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100514.SH "SEE ALSO"
515.BR weston (1),
516.BR weston-launch (1),
517.BR weston-drm (7),
518.BR xkeyboard-config (7)