From: Johan Malm Date: Wed, 22 Jul 2020 20:58:27 +0000 (+0100) Subject: Add labwc(5) X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=93d58094148d3b57c07c1ac9e4b28d8730c02b3b;p=proto%2Flabwc.git Add labwc(5) --- diff --git a/docs/labwc.5.md b/docs/labwc.5.md new file mode 100644 index 00000000..010e36f5 --- /dev/null +++ b/docs/labwc.5.md @@ -0,0 +1,133 @@ +% labwc(5) +% Johan Malm +% 22 July, 2020 + +# NAME + +labwc - A Wayland stacking compositor with the look and feel of Openbox + +# CONFIGURATION + +Configuration aims to be compatible with Openbox. Where there are differences, +these are pointed out. + +## rc.xml + +### rc.xml lab section + +The `` stanza contains some labwc specific settings which are not present in Openbox. + + + + + + + + +**csd** Use client-side decorations for xdg-shell views. + +**keyboard-layout** Set `XKB_DEFAULT_LAYOUT`. See xkeyboard-config(7) for details. + +### rc.xml theme section + + + + + +**name** The name of the Openbox theme to use + +### rc.xml keyboard section + +This section describes key bindings. + + + + ACTION + + + +**KEY-COMINATION** The key combination to bind to an action in the format **modifier**-**key**. + +Supported **modifiers** include: + +- S Shift +- C Control +- A Alt +- W Super key + +Unlike Openbox, multiple space-separated **KEY-COMINATION** and key-chains are not supported. + +Example: + + + + + + + + + + + dmenu_run + + + + +## Actions + +Actions are used in key bindings. + +Action syntax: + + + OPTION + + +**NAME** is the name of the action as listed below. + +**OPTION** is a set of tags specific to each action as defined below. + +### Action Execute + +Execute command specified by `` option. + +### Action Exit + +Exit labwc. + +### Action NextWindow + +Cycle focus to next window. + +## themerc + +**window.active.title.bg.color** Specify the background for the focussed window's titlebar + + + +**window.active.handle.bg.color** Specify the background for the focussed window's handle. + + +**window.inactive.title.bg.color** Specify the background for non-focussed windows' titlebars + +# DEFINITIONS + +The **handle** is the window decoration placed on the bottom of the window. + +# EXAMPLES + +## Example 1 - title bar configuration + + +-----------------------------------------+ ^ + | | | + | | | + | | | h + | | | + +-----------------------------------------+ v + + h = padding * 2 + font vertical extents + + +# SEE ALSO + +labwc(1) diff --git a/docs/meson.build b/docs/meson.build new file mode 100644 index 00000000..bee15c9b --- /dev/null +++ b/docs/meson.build @@ -0,0 +1,18 @@ +pandoc = find_program('pandoc', required: false) + +sections = ['1', '5'] + +if pandoc.found() + foreach s : sections + markdown = files('labwc.' + s + '.md') + manpage = 'labwc.' + s + custom_target( + manpage, + command: [pandoc,'-s','-t','man',markdown], + output: manpage, + capture: true, + install: true, + install_dir: join_paths(get_option('mandir'), 'man' + s) + ) + endforeach +endif diff --git a/meson.build b/meson.build index c26a64e5..49ee4ef2 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,7 @@ labwc_inc = include_directories('include') subdir('protocols') subdir('src') subdir('tests') +subdir('docs') labwc_deps = [ server_protos, wayland_server, wlroots, xkbcommon, xml2, glib, cairo, pango