summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:43:10 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:43:10 +1000
commit8595fc5a6f81f00ab62bfea127f8fad5c0b249de (patch)
treea3cec3efe4ece9b5109adf7952fd74ad2827c8df
parentDon't unescape \\ in criteria (diff)
downloadsway-8595fc5a6f81f00ab62bfea127f8fad5c0b249de.tar.gz
sway-8595fc5a6f81f00ab62bfea127f8fad5c0b249de.tar.zst
sway-8595fc5a6f81f00ab62bfea127f8fad5c0b249de.zip
Update criteria documentation
-rw-r--r--sway/sway.5.txt43
1 files changed, 33 insertions, 10 deletions
diff --git a/sway/sway.5.txt b/sway/sway.5.txt
index 03975349..704bb699 100644
--- a/sway/sway.5.txt
+++ b/sway/sway.5.txt
@@ -485,11 +485,16 @@ Mark all Firefox windows with "Browser":
485 485
486Currently supported attributes: 486Currently supported attributes:
487 487
488**class**:: 488**app_id**::
489 Compare value against the window class. Can be a regular expression. If value 489 Compare value against the app id. Can be a regular expression. If value is
490 is _focused_, then the window class must be the same as that of the currently 490 __focused__, then the app id must be the same as that of the currently
491 focused window. 491 focused window.
492 492
493**class**::
494 Compare value against the window class. Can be a regular expression. If
495 value is __focused__, then the window class must be the same as that of the
496 currently focused window.
497
493**con_id**:: 498**con_id**::
494 Compare against the internal container ID, which you can find via IPC. 499 Compare against the internal container ID, which you can find via IPC.
495 500
@@ -500,20 +505,38 @@ Currently supported attributes:
500 Matches against floating windows. 505 Matches against floating windows.
501 506
502**id**:: 507**id**::
503 Compare value against the app id. Can be a regular expression. 508 Compare value against the X11 window id. Must be numeric.
509
510**instance**::
511 Compare value against the window instance. Can be a regular expression. If
512 value is __focused__, then the window instance must be the same as that of
513 the currently focused window.
514
515**tiling**::
516 Matches against tiling windows.
504 517
505**title**:: 518**title**::
506 Compare against the window title. Can be a regular expression. If value is 519 Compare against the window title. Can be a regular expression. If value is
507 _focused_ then the window title must be the same as that of the currently 520 __focused__, then the window title must be the same as that of the currently
508 focused window. 521 focused window.
509 522
510**tiling**:: 523**urgent**::
511 Matches against tiling windows. 524 Compares the urgent state of the window. Can be "latest" or "oldest".
525
526**window_role**::
527 Compare against the window role (WM_WINDOW_ROLE). Can be a regular
528 expression. If value is __focused__, then the window role must be the same
529 as that of the currently focused window.
530
531**window_type**::
532 Compare against the window type (_NET_WM_WINDOW_TYPE). Possible values are
533 normal, dialog, utility, toolbar, splash, menu, dropdown_menu, popup_menu,
534 tooltip and notification.
512 535
513**workspace**:: 536**workspace**::
514 Compare against the workspace name for this view. Can be a regular expression. 537 Compare against the workspace name for this view. Can be a regular
515 If the value is _focused_, then all the views on the currently focused workspace 538 expression. If the value is __focused__, then all the views on the currently
516 matches. 539 focused workspace matches.
517 540
518See Also 541See Also
519-------- 542--------