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