blob: 0f7d2da02f1fb7d22d9e9f142c354013f4f323b7 [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
Kristian Høgsberg8e6f3762013-10-16 16:31:42 -0700140.BI "gbm-format="format
141sets the GBM format used for the framebuffer for the GBM backend. Can be
142.B xrgb8888,
143.B xrgb2101010,
144.B rgb565.
145By default, xrgb8888 is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100146.RS
147.PP
Frederic Plourde4a84c832014-10-30 15:06:34 -0400148.RE
149.TP 7
150.BI "idle-time="seconds
151sets Weston's idle timeout in seconds. This idle timeout is the time
152after which Weston will enter an "inactive" mode and screen will fade to
153black. Note that a screensaver may also start at this moment after fade-out
154(if enabled in the SCREENSAVER section below), but the current idle-time
155option has nothing to do with screensavers.
156
157.IR Important
158: This option may also be set via Weston's '-i' command
159line option and will take precedence over the current .ini option. This
160means that if both weston.ini and command line define this idle-timeout
161time, the one specified in the command-line will be used. On the other
162hand, if none of these sets the value, default idle timeout will be
163set to 300 seconds.
164.RS
Martin Minarikedc51c02013-01-18 18:44:29 +0100165
Jonas Ådahld3d128e2014-08-19 21:56:12 +0200166.SH "LIBINPUT SECTION"
167The
168.B libinput
169section is used to configure input devices when using the libinput input device
170backend.
171.PP
172Available configuration are:
173.TP 7
174.BI "enable_tap=" true
175enables tap to click on touchpad devices
176.RS
177.PP
178
Martin Minarikedc51c02013-01-18 18:44:29 +0100179.SH "SHELL SECTION"
180The
181.B shell
182section is used to customize the compositor. Some keys may not be handled by
183different shell plugins.
184.PP
185The entries that can appear in this section are:
186.TP 7
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100187.BI "client=" file
188sets the path for the shell client to run. If not specified
Emilio Pozuelo Monfort8a81b832013-12-02 12:53:32 +0100189.I __weston_shell_client__
190is launched (string).
Emilio Pozuelo Monfort46ce7982013-11-20 13:22:29 +0100191.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100192.BI "background-image=" file
193sets the path for the background image file (string).
194.TP 7
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200195.BI "background-type=" tile
Pekka Paalanena402b052013-05-22 18:03:10 +0300196determines how the background image is drawn (string). Can be
197.BR scale ", " scale-crop " or " tile " (default)."
198Scale means scaled to fit the output precisely, not preserving aspect ratio.
199Scale-crop preserves aspect ratio, scales the background image just big
200enough to cover the output, and centers it. The image ends up cropped from
201left and right, or top and bottom, if the aspect ratio does not match the
202output. Tile repeats the background image to fill the output.
Emilio Pozuelo Monfortf12a0942013-04-22 11:00:07 +0200203.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100204.BI "background-color=" 0xAARRGGBB
205sets the color of the background (unsigned integer). The hexadecimal
206digit pairs are in order alpha, red, green, and blue.
207.TP 7
208.BI "panel-color=" 0xAARRGGBB
209sets the color of the panel (unsigned integer). The hexadecimal
210digit pairs are in order transparency, red, green, and blue. Examples:
211.PP
212.RS 10
213.nf
214.BR "0xffff0000 " "Red"
215.BR "0xff00ff00 " "Green"
216.BR "0xff0000ff " "Blue"
217.BR "0x00ffffff " "Fully transparent"
218.fi
219.RE
220.TP 7
Jonny Lambe67118c2014-08-12 15:07:51 +0200221.BI "panel-location=" top
222sets the location of the panel (string). Can be
223.B top,
224.B none.
225.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100226.BI "locking=" true
227enables screen locking (boolean).
228.TP 7
229.BI "animation=" zoom
230sets the effect used for opening new windows (string). Can be
231.B zoom,
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700232.B fade,
233.B none.
234By default, no animation is used.
235.TP 7
Jonny Lambf322f8e2014-08-12 15:13:30 +0200236.BI "close-animation=" fade
237sets the effect used when closing windows (string). Can be
238.B fade,
239.B none.
240By default, the fade animation is used.
241.TP 7
Kristian Høgsberg724c8d92013-10-16 11:38:24 -0700242.BI "startup-animation=" fade
243sets the effect used for opening new windows (string). Can be
244.B fade,
245.B none.
246By default, the fade animation is used.
Martin Minarikedc51c02013-01-18 18:44:29 +0100247.TP 7
Emilio Pozuelo Monfortbb835b42013-11-20 13:22:30 +0100248.BI "focus-animation=" dim-layer
249sets the effect used with the focused and unfocused windows. Can be
250.B dim-layer,
251.B none.
252By default, no animation is used.
253.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100254.BI "binding-modifier=" ctrl
255sets the modifier key used for common bindings (string), such as moving
256surfaces, resizing, rotating, switching, closing and setting the transparency
257for windows, controlling the backlight and zooming the desktop. Possible values:
258ctrl, alt, super (default)
259.TP 7
260.BI "num-workspaces=" 6
261defines the number of workspaces (unsigned integer). The user can switch
262workspaces by using the
263binding+F1, F2 keys. If this key is not set, fall back to one workspace.
264.TP 7
Emilio Pozuelo Monfort57ac4062013-03-14 17:23:38 +0100265.BI "cursor-theme=" theme
266sets the cursor theme (string).
267.TP 7
268.BI "cursor-size=" 24
269sets the cursor size (unsigned integer).
270.TP 7
Martin Minarikedc51c02013-01-18 18:44:29 +0100271.BI "lockscreen-icon=" path
272sets the path to lock screen icon image (string). (tablet shell only)
273.TP 7
274.BI "lockscreen=" path
275sets the path to lock screen background image (string). (tablet shell only)
276.TP 7
277.BI "homescreen=" path
278sets the path to home screen background image (string). (tablet shell only)
279.RE
280.SH "LAUNCHER SECTION"
281There can be multiple launcher sections, one for each launcher.
282.TP 7
283.BI "icon=" icon
284sets the path to icon image (string). Svg images are not currently supported.
285.TP 7
286.BI "path=" program
287sets the path to the program that is run by clicking on this launcher (string).
288It is possible to pass arguments and environment variables to the program. For
289example:
290.nf
291.in +4n
292
293path=GDK_BACKEND=wayland gnome-terminal --full-screen
294.in
295.fi
296.PP
297.RE
298.SH "SCREENSAVER SECTION"
299The
300.B screensaver
301section is used to select and schedule a screensaver.
302The
303.B screensaver
304section is optional, as are all of the entries that may be specified in
305it.
306.TP 7
307.BI "path=" /usr/libexec/weston-screensaver
308This instructs the compositor to use the selected screensaver client on a given
309path (string). If this line is missing or commented out, the screensaver in
310.B "weston(1)"
311is disabled.
312.RE
313.TP 7
314.BI "duration=" 600
Frederic Plourde4a84c832014-10-30 15:06:34 -0400315The time in seconds until the screensaver disappears in order to save power
Martin Minarikedc51c02013-01-18 18:44:29 +0100316(unsigned integer).
317.SH "OUTPUT SECTION"
318There can be multiple output sections, each corresponding to one output. It is
319currently only recognized by the drm and x11 backends.
320.TP 7
321.BI "name=" name
322sets a name for the output (string). The backend uses the name to
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500323identify the output. All X11 output names start with a letter X. All
324Wayland output names start with the letters WL. The available
Martin Minarikedc51c02013-01-18 18:44:29 +0100325output names for DRM backend are listed in the
326.B "weston-launch(1)"
327output.
328Examples of usage:
329.PP
330.RS 10
331.nf
332.BR "LVDS1 " "DRM backend, Laptop internal panel no.1"
333.BR "VGA1 " "DRM backend, VGA connector no.1"
334.BR "X1 " "X11 backend, X window no.1"
Jason Ekstrand48ce4212013-10-27 22:25:02 -0500335.BR "WL1 " "Wayland backend, Wayland window no.1"
Martin Minarikedc51c02013-01-18 18:44:29 +0100336.fi
337.RE
338.RS
339.PP
340See
341.B "weston-drm(7)"
342for more details.
343.RE
344.TP 7
345.BI "mode=" mode
346sets the output mode (string). The mode parameter is handled differently
347depending on the backend. On the X11 backend, it just sets the WIDTHxHEIGHT of
348the weston window.
349The DRM backend accepts different modes:
350.PP
351.RS 10
352.nf
353.BR "WIDTHxHEIGHT " "Resolution size width and height in pixels"
354.BR "preferred " "Uses the preferred mode"
355.BR "current " "Uses the current crt controller mode"
356.BR "off " "Disables the output"
357.fi
358.RE
359.RS
360.PP
361Optionally, an user may specify a modeline, such as:
362.PP
363.nf
364.in +4n
365.nf
366173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
367.fi
368.in
369.PP
370It consists of the refresh rate in Hz, horizontal and vertical resolution,
371options for horizontal and vertical synchronisation. The program
372.B "cvt(1)"
373can provide suitable modeline string.
374.RE
375.TP 7
376.BI "transform=" normal
377The transformation applied to screen output (string). The transform key can
378be one of the following 8 strings:
379.PP
380.RS 10
381.nf
382.BR "normal " "Normal output."
383.BR "90 " "90 degrees clockwise."
384.BR "180 " "Upside down."
385.BR "270 " "90 degrees counter clockwise."
386.BR "flipped " "Horizontally flipped"
387.BR "flipped-90 " "Flipped and 90 degrees clockwise"
388.BR "flipped-180 " "Flipped upside down"
389.BR "flipped-270 " "Flipped and 90 degrees counter clockwise"
390.fi
391.RE
Rob Bradford14494622013-06-25 18:56:43 +0100392.TP 7
Magnus Hoff33eb5ed2014-08-25 13:22:11 +0200393.BI "scale=" factor
394An integer, 1 by default, typically configured as 2 when needed, denoting
395the scale factor of the output. Applications that support it render at the
396appropriate scale. For other applications, weston will scale their output
397by this factor.
398.RE
399.RS
400.PP
401Use a value of 2 for outputs with high resolution. Such displays are often
402called "HiDPI" or "retina" displays.
403.RE
404.TP 7
Rob Bradford14494622013-06-25 18:56:43 +0100405.BI "seat=" name
406The logical seat name that that this output should be associated with. If this
407is set then the seat's input will be confined to the output that has the seat
408set on it. The expectation is that this functionality will be used in a
409multiheaded environment with a single compositor for multiple output and input
410configurations. The default seat is called "default" and will always be
411present. This seat can be constrained like any other.
412.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100413.SH "INPUT-METHOD SECTION"
414.TP 7
415.BI "path=" "/usr/libexec/weston-keyboard"
416sets the path of the on screen keyboard input method (string).
417.RE
418.RE
419.SH "KEYBOARD SECTION"
420This section contains the following keys:
421.TP 7
422.BI "keymap_rules=" "evdev"
423sets the keymap rules file (string). Used to map layout and model to input
424device.
425.RE
426.RE
427.TP 7
428.BI "keymap_model=" "pc105"
429sets the keymap model (string). See the Models section in
430.B "xkeyboard-config(7)."
431.RE
432.RE
433.TP 7
434.BI "keymap_layout=" "us,de,gb"
435sets the comma separated list of keyboard layout codes (string). See the
436Layouts section in
437.B "xkeyboard-config(7)."
438.RE
439.RE
440.TP 7
441.BI "keymap_variant=" "euro,,intl"
442sets the comma separated list of keyboard layout variants (string). The number
443of variants must be the same as the number of layouts above. See the Layouts
444section in
445.B "xkeyboard-config(7)."
446.RE
447.RE
448.TP 7
449.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"
450sets the keymap options (string). See the Options section in
451.B "xkeyboard-config(7)."
452.RE
453.RE
Jonny Lamb66a41a02014-08-12 14:58:25 +0200454.TP 7
455.BI "repeat-rate=" "40"
456sets the rate of repeating keys in characters per second (unsigned integer)
457.RE
458.RE
459.TP 7
460.BI "repeat-delay=" "400"
461sets the delay in milliseconds since key down until repeating starts (unsigned
462integer)
463.RE
464.RE
Giulio Camuffode7e2b32014-08-28 19:44:10 +0300465.TP 7
466.BI "numlock-on=" "false"
467sets the default state of the numlock on weston startup for the backends which
468support it.
469.RE
470.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100471.SH "TERMINAL SECTION"
472Contains settings for the weston terminal application (weston-terminal). It
473allows to customize the font and shell of the command line interface.
474.TP 7
475.BI "font=" "DejaVu Sans Mono"
Wieland Hoffmannad0704a2014-01-10 22:23:12 +0100476sets the font of the terminal (string). For a good experience it is recommended
Martin Minarikedc51c02013-01-18 18:44:29 +0100477to use monospace fonts. In case the font is not found, the default one is used.
478.RE
479.RE
480.TP 7
481.BI "font-size=" "14"
482sets the size of the terminal font (unsigned integer).
483.RE
484.RE
485.TP 7
486.BI "term=" "xterm-256color"
487The terminal shell (string). Sets the $TERM variable.
488.RE
489.RE
Maksim Melnikau92de1442013-08-14 22:33:10 +0300490.SH "XWAYLAND SECTION"
491.TP 7
492.BI "path=" "/usr/bin/Xorg"
493sets the path to the xserver to run (string).
494.RE
495.RE
Andrew Wedgburyc34b6772014-06-26 16:31:43 +0100496.SH "SCREEN-SHARE SECTION"
497.TP 7
498.BI "command=" "/usr/bin/weston --backend=rdp-backend.so \
499--shell=fullscreen-shell.so --no-clients-resize"
500sets the command to start a fullscreen-shell server for screen sharing (string).
501.RE
502.RE
Martin Minarikedc51c02013-01-18 18:44:29 +0100503.SH "SEE ALSO"
504.BR weston (1),
505.BR weston-launch (1),
506.BR weston-drm (7),
507.BR xkeyboard-config (7)