diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-06-05 01:31:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-05 11:02:35 -0400 |
commit | f0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6 (patch) | |
tree | 396dc81beb04174d2b8bab75d07294c991d95d3c /sway/sway.5.scd | |
parent | add seat sub command 'xcursor_theme' (diff) | |
download | sway-f0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6.tar.gz sway-f0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6.tar.zst sway-f0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6.zip |
criteria: reset on semicolon separation
This matches i3's behavior of only retaining criteria across comma
separated commands. When separating commands with a semicolon, the
criteria is reset and allows for new criteria to be set, if desired.
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r-- | sway/sway.5.scd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 6d098d94..db6dda0d 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd | |||
@@ -45,7 +45,8 @@ the bindsym command. | |||
45 | Commands are split into several arguments using spaces. You can enclose | 45 | Commands are split into several arguments using spaces. You can enclose |
46 | arguments with quotation marks (*"..."* or *'...'*) to add spaces to a single | 46 | arguments with quotation marks (*"..."* or *'...'*) to add spaces to a single |
47 | argument. You may also run several commands in order by separating each with | 47 | argument. You may also run several commands in order by separating each with |
48 | *,* or *;*. | 48 | *,* or *;*. Criteria is retained across commands separated by *,*, but will be |
49 | reset (and allow for new criteria, if desired) for commands separated by a *;*. | ||
49 | 50 | ||
50 | Throughout the documentation, *|* is used to distinguish between arguments for | 51 | Throughout the documentation, *|* is used to distinguish between arguments for |
51 | which you may only select one. *[...]* is used for optional arguments, and | 52 | which you may only select one. *[...]* is used for optional arguments, and |
@@ -753,7 +754,9 @@ A criteria is a string in the form of, for example: | |||
753 | 754 | ||
754 | The string contains one or more (space separated) attribute/value pairs. They | 755 | The string contains one or more (space separated) attribute/value pairs. They |
755 | are used by some commands to choose which views to execute actions on. All | 756 | are used by some commands to choose which views to execute actions on. All |
756 | attributes must match for the criteria to match. | 757 | attributes must match for the criteria to match. Criteria is retained across |
758 | commands separated by a *,*, but will be reset (and allow for new criteria, if | ||
759 | desired) for commands separated by a *;*. | ||
757 | 760 | ||
758 | Criteria may be used with either the *for_window* or *assign* commands to | 761 | Criteria may be used with either the *for_window* or *assign* commands to |
759 | specify operations to perform on new views. A criteria may also be used to | 762 | specify operations to perform on new views. A criteria may also be used to |