Hi Martin,<br><br>Thanks for working on this. A few comments below.<br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 9:40 PM, Martin Minarik <span dir="ltr"><<a href="mailto:minarik11@student.fiit.stuba.sk" target="_blank">minarik11@student.fiit.stuba.sk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Track changes in weston.ini format: core, input-method sections.<br>
animation: make zoom, fade bold.<br>
More examples for keymap layous.<br>
Example for term=xterm-256color<br>
---<br>
 man/weston.ini.5 |  268 ++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 1 file changed, 268 insertions(+)<br>
 create mode 100644 man/weston.ini.5<br>
<br>
diff --git a/man/weston.ini.5 b/man/weston.ini.5<br>
new file mode 100644<br>
index 0000000..a580242<br>
--- /dev/null<br>
+++ b/man/weston.ini.5<br>
@@ -0,0 +1,268 @@<br>
+.\" shorthand for double quote that works everywhere.<br>
+.ds q \N'34'<br>
+.TH weston.ini 5 "weston 0.95.0" "Wayland "<br></blockquote><div><br>Shouldn't the version here reflect latest weston?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

+.SH NAME<br>
+weston.ini \- configuration file for<br>
+.B Weston<br>
+\- the reference Wayland<br>
+compositor<br>
+.SH INTRODUCTION<br>
+.B Weston<br>
+obtains configuration from its command line parameters and the configuration<br>
+file described here.<br>
+.SH DESCRIPTION<br>
+.B Weston<br>
+uses a configuration file called<br>
+.I weston.ini<br>
+for its setup.<br>
+The<br>
+.I weston.ini<br>
+configuration file is searched for in one of the following places when the<br>
+server is started:<br>
+.PP<br>
+.RS 4<br>
+.nf<br>
+.BR "$XDG_CONFIG_HOME/weston.ini   " "(if $XDG_CONFIG_HOME is set)"<br>
+.BR "$HOME/.config/weston.ini      " "(if $HOME is set)"<br>
+.BR "<current dir>/weston.ini      " "(if both variables were not set)"<br>
+.fi<br>
+.RE<br>
+.PP<br>
+where enviroment variable<br>
+.B $HOME<br>
+is the user's home directory, and<br>
+.B $XDG_CONFIG_HOME<br>
+is the user specific configuration directory.<br>
+.PP<br>
+The<br>
+.I weston.ini<br>
+file is composed of a number of sections which may be present in any order, or<br>
+omitted to use default configuration values. Each section has the form:<br>
+.PP<br>
+.RS 4<br>
+.nf<br>
+.BI [ SectionHeader ]<br>
+.RI Option1=Value1<br>
+.RI Option2=Value2<br></blockquote><div><br>A minor nitpick, can we use Key instead of Option?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+    ...<br>
+.fi<br>
+.RE<br>
+.PP<br>
+Comment lines are ignored:<br>
+.PP<br>
+.RS 4<br>
+.nf<br>
+.IR "#comment"<br>
+.fi<br>
+.RE<br>
+.PP<br>
+The section headers are:<br>
+.PP<br>
+.RS 4<br>
+.nf<br>
+.BR "shell          " "Desktop customisation"<br></blockquote><div><br>I am curious if there is a preferred spelled for words such as customize and optimizations. The discrepancy here is 's' vs 'z'.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.BR "launcher       " "Add launcher to the panel"<br>
+.BR "screensaver    " "Screensaver selection"<br>
+.BR "output         " "Monitors setup"<br></blockquote><div><br>The output device is not necessarily a monitor. For example with x11 backend, the outputs are x11 windows. Perhaps "Monitors setup" can become "Output configuration"<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.BR "keyboard       " "Keyboard layouts"<br>
+.BR "terminal       " "Terminal application options"<br>
+.fi<br>
+.RE<br>
+.PP<br>
+Values are: string, integer (signed or unsigned) and boolean.<br>
+.SH "SHELL SECTION"<br>
+The<br>
+.B shell<br>
+section is used to customise the compositor.<br>
+.PP<br>
+The entries that can appear in this section are:<br>
+.TP 7<br>
+.BI "type=" desktop-shell.so<br>
+sets the file name of the desired shell plugin. The shell user inteface plugin<br>
+provides the basic user enviroment displayed when the compositor starts.<br>
+Available shells in the<br>
+.IR /lib/weston/<br>
+directory are:<br>
+.PP<br>
+.RS 11<br>
+.nf<br>
+.IR desktop-shell.so<br>
+.fi<br>
+.IR tablet-shell.so<br>
+.TP 7<br>
+.RE<br>
+.TP 7<br>
+.BI "background-image=" file<br>
+sets the path for the background image file.<br>
+.TP 7<br>
+.BI "background-color=" 0xAARRGGBB<br>
+sets the color of the background. The hexadecimal<br>
+digit pairs are in order alpha, red, green, and blue.<br>
+.TP 7<br>
+.BI "panel-color=" 0xAARRGGBB<br>
+sets the color of the panel. The hexadecimal<br>
+digit pairs are in order opacity, red, green, and blue. Examples:<br>
+.PP<br>
+.RS 10<br>
+.nf<br>
+.BR "0xffff0000    " "Red"<br>
+.BR "0xff00ff00    " "Green"<br>
+.BR "0xff0000ff    " "Blue"<br>
+.BR "0x00ffffff    " "Fully opaque"<br></blockquote><div><br>Wouldn't this be fully transparent? Opaque means neither translucent nor transparent.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

+.fi<br>
+.RE<br>
+.TP 7<br>
+.BI "locking=" true<br>
+enables screen locking.<br>
+.TP 7<br>
+.BI "animation=" zoom<br>
+sets the effect used for switching workspaces. Can be either zoom or fade<br></blockquote><div><br>Doesn't this set the surface (open) animation? I don't think workspace switching animation is configurable.<br> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.TP 7<br>
+.BI "binding-modifier=" ctrl<br>
+sets the compositor binding modifier hot key. This key is used for moving,<br>
+resizing, rotating, switching, closing and setting the opacity for windows,<br>
+controlling the backlight and zooming the desktop. Users running under Unity<br>
+desktop may want to use something else than the default.</blockquote><div><br>This mod key is the main modifier used for many common bindings. Having the word "Unity" in the man page feels wrong. I don't think we need to mention any specific names here.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Possible values:<br>
+ctrl, alt, super (default)<br>
+.TP 7<br>
+.BI "num-workspaces=" 6<br>
+defines the number of workspaces. The user can switch workspaces by using the<br>
+binding+F1, F2 keys. If this option is not set, fall back to one workspace.<br>
+.TP 7<br>
+.BI "lockscreen-icon=" path<br>
+sets the path to lock screen icon image. (tablet shell only)<br>
+.TP 7<br>
+.BI "lockscreen=" path<br>
+sets the path to lock screen background image. (tablet shell only)<br>
+.TP 7<br>
+.BI "homescreen=" path<br>
+sets the path to home screen background image. (tablet shell only)<br>
+.RE<br>
+.SH "LAUNCHER SECTION"<br>
+.TP 7<br>
+.BI "icon=" icon<br>
+sets the path to icon image. Svg images are not supported.<br></blockquote><div><br>This statement makes it sound like svg will never be supported. Perhaps "Svg images are not currently supported." would make it clear that svg is not strictly prohibited.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.TP 7<br>
+.BI "path=" program<br>
+sets the path to the program that is run by clicking on this launcher.<br>
+.SH "SCREENSAVER SECTION"<br>
+The<br>
+.B screensaver<br>
+section is used to select and schedule a screensaver.<br>
+The<br>
+.B screensaver<br>
+section is optional, as are all of the entries that may be specified in<br>
+it.<br>
+.TP 7<br>
+.BI "path=" /usr/libexec/weston-screensaver<br>
+This instructs the compositor to use the selected screensaver client on a given<br>
+path. If this line is missing or commented out, the screensaver in<br>
+.B weston<br>
+is disabled.<br>
+.RE<br>
+.TP 7<br>
+.BI "duration=" 600<br>
+The idle time in seconds until the screensaver disappears in order to save power.<br>
+.SH "OUTPUT SECTION"<br>
+There can be multiple output sections, one for each computer screen.<br>
+.TP 7<br>
+.BI "name=" name<br>
+sets a name for the screen. A backend recognizes these names and uses the whole<br>
+screen section for its screen.</blockquote><div><br>This does not convey the correct information. The output section is currently only recognized by the x11 and drm backends. The name key is used to identify an output. There is no screen concept or screen section at all.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Examples of usage:<br>
+.PP<br>
+.RS 10<br>
+.nf<br>
+.BR "LVDS1    " "LVDS mode, DRM backend"<br>
+.BR "VGA1     " "VGA mode, DRM backend"<br>
+.BR "X1       " "X11 backend (running weston on X server)"<br></blockquote><div><br>We need to make it clear that the name key is parsed differently by drm and x11 backend. For drm, the name key must be an output name listed in the output of weston-launch (drm backend). For x11, the name key must start with an 'X'.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.fi<br>
+.RE<br>
+.TP 7<br>
+.BI "mode=" "173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync"<br>
+sets the resolution and the configuration of the monitor. Consists of the<br>
+refresh rate in Hz, horizontal and vertical resolution, options to for<br>
+horizontal and vertical synchronisation. The program<br>
+.B cvt<br>
+can provide suitable modeline string. Alternative formats:<br>
+.PP<br>
+.RS 10<br>
+.nf<br>
+.BR "WIDTHxHEIGHT    " "Resolution size width and height in pixels"<br>
+.BR "preferred       " "Uses the preferred mode"<br>
+.BR "current         " "Uses the current crt controller mode"<br>
+.BR "off             " "Disables the output"<br></blockquote><div><br>Same with the mode here. We need to convey that fact that it's parsed differently by drm and x11 backends, respectively. For drm backend, the mode must be a mode already listed by the output of weston-launch (drm backend) or, one of the other valid textual key values. For x11 backend, raw modelines are not accepted and the width/height can be any values.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+.fi<br>
+.RE<br>
+.TP 7<br>
+.BI "transform=" normal<br>
+The transformation applied to screen output. The transform key can be one of<br>
+the following 8 strings:<br>
+.PP<br>
+.RS 10<br>
+.nf<br>
+.BR  "normal        " "Normal output."<br>
+.BR  "90            " "90 degrees clockwise."<br>
+.BR  "180           " "Upside down."<br>
+.BR  "270           " "90 degrees counter clockwise."<br>
+.BR  "flipped       " "Horizontally flipped"<br>
+.BR  "flipped-90    " "Flipped and 90 degrees clockwise"<br>
+.BR  "flipped-180   " "Flipped upside down"<br>
+.BR  "flipped-270   " "Flipped and 90 degrees counter clockwise"<br>
+.fi<br>
+.RE<br>
+.SH "KEYBOARD SECTION"<br>
+This section contains the following options:<br>
+.TP 7<br>
+.BI "keymap_rules=" "evdev"<br>
+sets the keymap rules file. Used to map layout and model to input device.<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "keymap_model=" "pc105"<br>
+sets the keymap model. See the Models section in<br>
+.B "xkeyboard-config(7)."<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "keymap_layout=" "us,de,gb"<br>
+sets the comma separated list of keyboard layout codes. See the Layouts section<br>
+in<br>
+.B "xkeyboard-config(7)."<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "keymap_variant=" "euro,,intl"<br>
+sets the comma separated list of keyboard layout variants. The number of variants<br>
+is be the same as the number of layouts above. See the Layouts section in<br>
+.B "xkeyboard-config(7)."<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "keymap_options=" "grp:alt_shift_toggle,grp_led:scroll"<br>
+sets the keymap options. See the Options section in<br>
+.B "xkeyboard-config(7)."<br>
+.RE<br>
+.RE<br>
+.SH "TERMINAL SECTION"<br>
+Contains settings for the weston terminal application (weston-terminal). It<br>
+allows to customize the font and shell of the command line interface.<br>
+.TP 7<br>
+.BI "font=" "DejaVu Sans Mono"<br>
+sets the font of the terminal. For a good experience it is recommend to use<br>
+monospace fonts. In case the font is not found, the default one is used.<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "font-size=" "14"<br>
+sets the size of the terminal font.<br>
+.RE<br>
+.RE<br>
+.TP 7<br>
+.BI "term=" "term"<br>
+The terminal shell. Sets the $TERM variable.<br>
+.RE<br>
+.RE<br>
+.SH "SEE ALSO"<br>
+.BR weston (1),<br>
+.BR weston-launch (1)<br>
+.BR xkeyboard-config (7)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a></font></span></blockquote><div><br><br>Thanks,<br><br>Scott <br></div>
</div><br>