mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
swaymsg.1: add tip about two hyphens for commands
This adds a tip to the command section about using two hyphens before a command to signal that no swaymsg options will follow to allow for sway commands with leading hyphens.
This commit is contained in:
parent
63651bc5e0
commit
7447eefca9
|
@ -46,6 +46,11 @@ _swaymsg_ [options...] [message]
|
||||||
|
|
||||||
See **sway**(5) for a list of commands.
|
See **sway**(5) for a list of commands.
|
||||||
|
|
||||||
|
Tip: If you are proving 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
|
||||||
|
_swaymsg -- mark --add test_ instead of _swaymsg mark --add test_
|
||||||
|
|
||||||
*get\_workspaces*
|
*get\_workspaces*
|
||||||
Gets a JSON-encoded list of workspaces and their status.
|
Gets a JSON-encoded list of workspaces and their status.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue