diff options
author | 2017-04-02 14:38:33 -0600 | |
---|---|---|
committer | 2017-04-03 11:48:37 -0600 | |
commit | 2445d279604d7be38c00db60ffde4279a3c75459 (patch) | |
tree | 030844d9fb13be7814dd760a6ffedbec8f5264cd /sway/sway.5.txt | |
parent | Update man page (diff) | |
download | sway-2445d279604d7be38c00db60ffde4279a3c75459.tar.gz sway-2445d279604d7be38c00db60ffde4279a3c75459.tar.zst sway-2445d279604d7be38c00db60ffde4279a3c75459.zip |
Impliment i3-style marks
This commit adds three commands to sway: `show_marks`, `mark` and
`unmark`. Marks are displayed right-aligned in the window border as i3
does. Marks may be found using criteria.
Fixes #1007
Diffstat (limited to 'sway/sway.5.txt')
-rw-r--r-- | sway/sway.5.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sway/sway.5.txt b/sway/sway.5.txt index 5d143d97..3cccdfd5 100644 --- a/sway/sway.5.txt +++ b/sway/sway.5.txt | |||
@@ -316,6 +316,14 @@ The default colors are: | |||
316 | If smart_gaps are _on_ then gaps will only be enabled if a workspace has more | 316 | If smart_gaps are _on_ then gaps will only be enabled if a workspace has more |
317 | than one child container. | 317 | than one child container. |
318 | 318 | ||
319 | **mark** <--add|--replace> <--toggle> <identifier>:: | ||
320 | Marks are arbitrary labels that can be used to identify certain windows and | ||
321 | then jump to them at a later time. By default, the **mark** command sets | ||
322 | _identifier_ as the only mark on a window. By specifying _--add_, mark will | ||
323 | add _identifier_ to the list of current marks. If _--toggle_ is specified mark | ||
324 | will remove _identifier_ if it is already a label. Marks may be found by using | ||
325 | a criteria. See the **Criteria** section below. | ||
326 | |||
319 | **mode** <mode_name>:: | 327 | **mode** <mode_name>:: |
320 | Switches to the given mode_name. The default mode is simply _default_. To | 328 | Switches to the given mode_name. The default mode is simply _default_. To |
321 | create a new mode in config append _{_ to this command, the following lines | 329 | create a new mode in config append _{_ to this command, the following lines |
@@ -368,6 +376,15 @@ The default colors are: | |||
368 | be configured with perfectly aligned adjacent positions for this option to | 376 | be configured with perfectly aligned adjacent positions for this option to |
369 | have any effect. | 377 | have any effect. |
370 | 378 | ||
379 | **show_marks** <on|off>:: | ||
380 | If **show_marks** is on then marks will be showed in the window decoration. | ||
381 | However, any mark that starts with an underscore will not be drawn even if the | ||
382 | option is on. The default option is _on_. | ||
383 | |||
384 | **unmark** <identifier>:: | ||
385 | **Unmark** will remove _identifier_ from the list of current marks on a window. If | ||
386 | no _identifier_ is specified then **unmark** will remove all marks. | ||
387 | |||
371 | **workspace** [number] <name>:: | 388 | **workspace** [number] <name>:: |
372 | Switches to the specified workspace. The string "number" is optional. The | 389 | Switches to the specified workspace. The string "number" is optional. The |
373 | worspace _name_, if unquoted, may not contain the string "output", as sway | 390 | worspace _name_, if unquoted, may not contain the string "output", as sway |
@@ -416,6 +433,9 @@ Currently supported attributes: | |||
416 | is _focused_ then the window class must be the same as that of the currently | 433 | is _focused_ then the window class must be the same as that of the currently |
417 | focused window. | 434 | focused window. |
418 | 435 | ||
436 | **con_mark**:: | ||
437 | Compare against the window marks. Can be a regular expression. | ||
438 | |||
419 | **id**:: | 439 | **id**:: |
420 | Compare value against the app id. Can be a regular expression. | 440 | Compare value against the app id. Can be a regular expression. |
421 | 441 | ||