aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-06-05 01:31:50 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-06-05 11:02:35 -0400
commitf0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6 (patch)
tree396dc81beb04174d2b8bab75d07294c991d95d3c /sway/sway.5.scd
parentadd seat sub command 'xcursor_theme' (diff)
downloadsway-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.scd7
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.
45Commands are split into several arguments using spaces. You can enclose 45Commands are split into several arguments using spaces. You can enclose
46arguments with quotation marks (*"..."* or *'...'*) to add spaces to a single 46arguments with quotation marks (*"..."* or *'...'*) to add spaces to a single
47argument. You may also run several commands in order by separating each with 47argument. 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
49reset (and allow for new criteria, if desired) for commands separated by a *;*.
49 50
50Throughout the documentation, *|* is used to distinguish between arguments for 51Throughout the documentation, *|* is used to distinguish between arguments for
51which you may only select one. *[...]* is used for optional arguments, and 52which 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
754The string contains one or more (space separated) attribute/value pairs. They 755The string contains one or more (space separated) attribute/value pairs. They
755are used by some commands to choose which views to execute actions on. All 756are used by some commands to choose which views to execute actions on. All
756attributes must match for the criteria to match. 757attributes must match for the criteria to match. Criteria is retained across
758commands separated by a *,*, but will be reset (and allow for new criteria, if
759desired) for commands separated by a *;*.
757 760
758Criteria may be used with either the *for_window* or *assign* commands to 761Criteria may be used with either the *for_window* or *assign* commands to
759specify operations to perform on new views. A criteria may also be used to 762specify operations to perform on new views. A criteria may also be used to