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