mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
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:
parent
ed9b4e6aeb
commit
de43f7c1db
2 changed files with 31 additions and 22 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue