diff options
Diffstat (limited to 'sway/sway.5.txt')
-rw-r--r-- | sway/sway.5.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sway/sway.5.txt b/sway/sway.5.txt index 5d143d97..d76951b5 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 |
@@ -409,6 +426,20 @@ The string contains one or more (space separated) attribute/value pairs and they | |||
409 | are used by some commands filter which views to execute actions on. All attributes | 426 | are used by some commands filter which views to execute actions on. All attributes |
410 | must match for the criteria string to match. | 427 | must match for the criteria string to match. |
411 | 428 | ||
429 | Criteria may be used with either the **for_window** or **assign** commands to | ||
430 | specify operations to perform on new views. A criteria may also be used to | ||
431 | perform specific commands (ones that normally act upon one window) on all views | ||
432 | that match that criteria. For example: | ||
433 | |||
434 | Focus on a window with the mark "IRC": | ||
435 | [con_mark="IRC"] focus | ||
436 | |||
437 | Kill all windows with the title "Emacs": | ||
438 | [class="Emacs"] kill | ||
439 | |||
440 | Mark all Firefox windows with "Browser": | ||
441 | [class="Firefox"] mark Browser | ||
442 | |||
412 | Currently supported attributes: | 443 | Currently supported attributes: |
413 | 444 | ||
414 | **class**:: | 445 | **class**:: |
@@ -416,6 +447,9 @@ Currently supported attributes: | |||
416 | is _focused_ then the window class must be the same as that of the currently | 447 | is _focused_ then the window class must be the same as that of the currently |
417 | focused window. | 448 | focused window. |
418 | 449 | ||
450 | **con_mark**:: | ||
451 | Compare against the window marks. Can be a regular expression. | ||
452 | |||
419 | **id**:: | 453 | **id**:: |
420 | Compare value against the app id. Can be a regular expression. | 454 | Compare value against the app id. Can be a regular expression. |
421 | 455 | ||