From de43f7c1db9bb47ef042bc310fdcf2cd2b346c98 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sat, 28 Dec 2019 21:15:54 -0500 Subject: 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. --- sway/sway.5.scd | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'sway/sway.5.scd') diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 52ee9d28..29e9809b 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -442,15 +442,16 @@ runtime. bindswitch lid:toggle exec echo "Lid moved" ``` -*client.* - 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* + This command is ignored and is only present for i3 compatibility. - The available classes are: +*client.* [ []] + 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_. - *client.background* - Ignored (present for i3 compatibility). + The available classes are: *client.focused* The window that has focus. -- cgit v1.2.3-54-g00ecf