From 7266fafb4e3fed0cee65f11bde7bc41be656463b Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 15 Nov 2021 16:54:14 +0100 Subject: [PATCH 1/2] Improve man page about CRITERIA in (5)sway The man page is missing information that `'` will not work correctly and instead the `"` should be used. --- sway/sway.5.scd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sway/sway.5.scd b/sway/sway.5.scd index ec34a56c..67568f5b 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -855,7 +855,8 @@ The string contains one or more (space separated) attribute/value pairs. They are used by some commands to choose which views to execute actions on. All attributes must match for the criteria to match. Criteria is retained across commands separated by a *,*, but will be reset (and allow for new criteria, if -desired) for commands separated by a *;*. +desired) for commands separated by a *;*. The strings has to be quoted by *"* +the simple quotes *'* are not supported. Criteria may be used with either the *for_window* or *assign* commands to specify operations to perform on new views. A criteria may also be used to From 0e1ddde88566ef3a56c992007f9993c99dcab177 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 15 Nov 2021 17:02:14 +0100 Subject: [PATCH 2/2] Add note that for_window will not be reloaded in config This configuration option is pretty useful but hard to configure properly. Having this explicitly written could avoid headache for some people. --- sway/sway.5.scd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 67568f5b..89d633c2 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -653,7 +653,8 @@ The default colors are: *for_window* Whenever a window that matches _criteria_ appears, run list of commands. - See *CRITERIA* for more details. + See *CRITERIA* for more details. Please note this configuration is not + reloaded on _reload_ action. *gaps* inner|outer|horizontal|vertical|top|right|bottom|left Sets default _amount_ pixels of _inner_ or _outer_ gap, where the inner