2020-07-22 21:58:27 +01:00
|
|
|
% labwc(5)
|
|
|
|
|
% Johan Malm
|
2020-07-24 20:00:50 +01:00
|
|
|
% 24 July, 2020
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
labwc - Configuration files
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
There are two configuration files which control the look and behaviour of
|
|
|
|
|
labwc, namely rc.xml and themerc. The configuration aims to be compatible with
|
|
|
|
|
Openbox, but there are some differences which are pointed out in this man page.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
# RC.XML `<lab>`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
Labwc specific settings which are not present in Openbox.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
<lab>
|
|
|
|
|
<csd></csd>
|
|
|
|
|
<keyboard>
|
|
|
|
|
<layout></layout>
|
|
|
|
|
</keyboard>
|
|
|
|
|
</lab>
|
|
|
|
|
|
2020-07-24 20:00:50 +01:00
|
|
|
`csd` (__boolean__; default `no`)
|
2020-07-23 22:15:15 +01:00
|
|
|
|
|
|
|
|
: Use client-side decorations for xdg-shell views.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-24 20:00:50 +01:00
|
|
|
`keyboard-layout` (__string__; not set by default)
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Set `XKB_DEFAULT_LAYOUT`. See xkeyboard-config(7) for details.
|
|
|
|
|
|
|
|
|
|
# RC.XML `<theme>`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
<theme>
|
|
|
|
|
<name></name>
|
|
|
|
|
</theme>
|
|
|
|
|
|
2020-07-24 20:00:50 +01:00
|
|
|
`name` (__string__; default `Clearlooks`)
|
2020-07-23 22:15:15 +01:00
|
|
|
|
|
|
|
|
: The name of the Openbox theme to use
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
# RC.XML `<keyboard>`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
Describe key bindings.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
<keyboard>
|
2020-07-23 22:15:15 +01:00
|
|
|
<keybind key="KEY-COMBINATION">
|
2020-07-22 21:58:27 +01:00
|
|
|
ACTION
|
|
|
|
|
</keybind>
|
|
|
|
|
<keyboard>
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`KEY-COMBINATION`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: The key combination to bind to an **ACTION** in the format
|
|
|
|
|
**modifier-key**, where supported **modifiers** include S (shift);
|
|
|
|
|
C (control); A (alt); W (super). Unlike Openbox, multiple space-separated
|
|
|
|
|
**KEY-COMBINATION** and key-chains are not supported.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
<keyboard>
|
|
|
|
|
<keybind key="A-Escape">
|
|
|
|
|
<action name="Exit"/>
|
|
|
|
|
</keybind>
|
|
|
|
|
<keybind key="A-Tab">
|
|
|
|
|
<action name="NextWindow"/>
|
|
|
|
|
</keybind>
|
|
|
|
|
<keybind key="A-F3">
|
|
|
|
|
<action name="Execute">
|
|
|
|
|
<command>dmenu_run</command>
|
|
|
|
|
</action>
|
|
|
|
|
</keybind>
|
|
|
|
|
<keyboard>
|
|
|
|
|
|
2020-07-24 20:00:50 +01:00
|
|
|
Default:
|
|
|
|
|
|
|
|
|
|
If no rc.xml file is found, the following default values will be used:
|
|
|
|
|
|
|
|
|
|
- Alt+Escape: Exit labwc
|
|
|
|
|
- Alt+Tab: Cycle windows
|
|
|
|
|
- Alt+F3: Launch dmenu
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
# ACTIONS
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
Actions are used in key bindings.
|
|
|
|
|
|
|
|
|
|
Action syntax:
|
|
|
|
|
|
|
|
|
|
<action name="NAME">
|
|
|
|
|
OPTION
|
|
|
|
|
</action>
|
|
|
|
|
|
2020-07-24 20:00:50 +01:00
|
|
|
where `NAME` is the name of the action as listed below, and `OPTION` is a set
|
|
|
|
|
of tags specific to each action as defined below.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`Execute`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Execute command specified by `<command>` option.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`Exit`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Exit labwc.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`NextWindow`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Cycle focus to next window.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
# THEMERC
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`window.active.title.bg.color`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Background for the focussed window's titlebar
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`window.active.handle.bg.color`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Background for the focussed window's handle.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
`window.inactive.title.bg.color`
|
2020-07-22 21:58:27 +01:00
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
: Background for non-focussed windows' titlebars
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
# DEFINITIONS
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
The `handle` is the window decoration placed on the bottom of the window.
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
|
|
## Example 1 - title bar configuration
|
|
|
|
|
|
|
|
|
|
+-----------------------------------------+ ^
|
|
|
|
|
| | |
|
|
|
|
|
| | |
|
|
|
|
|
| | | h
|
|
|
|
|
| | |
|
|
|
|
|
+-----------------------------------------+ v
|
|
|
|
|
|
2020-07-23 22:15:15 +01:00
|
|
|
h = padding * 2 + font-vertical-extents
|
2020-07-22 21:58:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
|
|
labwc(1)
|