commit 08095e99f3cc1697bc3f20d166a2c19374537afd
parent 2ea5d2985ad18ec6cb9d9f4e8d05e3d91356a6bb
Author: Érico Rolim <erico.erc@gmail.com>
Date: Thu, 3 Sep 2020 14:45:31 -0300
swaymsg.1: expand tip for multi-word strings.
Strings with commas inside, such as the ones used for
xkb_{config,layout} commands, count as multi-word strings.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swaymsg/swaymsg.1.scd b/swaymsg/swaymsg.1.scd
@@ -51,7 +51,9 @@ _swaymsg_ [options...] [message]
If you have quoted multi-word strings in your command, enclose the entire
command in single-quotes. For example, use
_swaymsg 'output "Foobar Display" enable'_ instead of
- _swaymsg output "Foobar Display" enable_.
+ _swaymsg output "Foobar Display" enable_. Furthermore, note that comma
+ separated options also count as multi-word strings, because commas can be
+ used to execute commands on the same line.
- If you are providing a command that contains a leading hyphen (_-_), insert
two hyphens (_--_) before the command to signal to swaymsg not to parse
anything beyond that point as an option. For example, use