cmd_client_*: support optional args for i3 compat

For i3 compatibility, allow the indicator and child_border colors values
to be optional. The indicator will fallback to sane defaults and
child_border will fallback to the background color for the class.
This commit is contained in:
Brian Ashworth 2019-12-28 21:15:54 -05:00 committed by Simon Ser
parent ed9b4e6aeb
commit de43f7c1db
2 changed files with 31 additions and 22 deletions

View file

@ -442,16 +442,17 @@ runtime.
bindswitch lid:toggle exec echo "Lid moved"
```
*client.<class>* <border> <background> <text> <indicator> <child_border>
Configures the color of window borders and title bars. All 5 colors are
required, with the exception of *client.background*, which requires exactly
one. Colors may be specified in hex, either as _#RRGGBB_ or _#RRGGBBAA_.
*client.background* <color>
This command is ignored and is only present for i3 compatibility.
*client.<class>* <border> <background> <text> [<indicator> [<child_border>]]
Configures the color of window borders and title bars. The first three
colors are required. When omitted _indicator_ will use a sane default and
_child_border_ will use the color set for _background_. Colors may be
specified in hex, either as _#RRGGBB_ or _#RRGGBBAA_.
The available classes are:
*client.background*
Ignored (present for i3 compatibility).
*client.focused*
The window that has focus.