Add infos to help using for_window to man 5

master
Nomeji 6 years ago committed by Drew DeVault
parent 23c64ab22d
commit 578c1956ac

@ -770,17 +770,20 @@ Mark all Firefox windows with "Browser":
[class="Firefox"] mark Browser [class="Firefox"] mark Browser
``` ```
You may like to use swaymsg -t get_tree for finding the values of these
properties in practice for your applications.
The following attributes may be matched with: The following attributes may be matched with:
*app_id* *app_id*
Compare value against the app id. Can be a regular expression. If value is Compare value against the app id. Can be a regular expression. If value is
\_\_focused\_\_, then the app id must be the same as that of the currently \_\_focused\_\_, then the app id must be the same as that of the currently
focused window. focused window. _app_id_ are specific to Wayland applications.
*class* *class*
Compare value against the window class. Can be a regular expression. If Compare value against the window class. Can be a regular expression. If
value is \_\_focused\_\_, then the window class must be the same as that of value is \_\_focused\_\_, then the window class must be the same as that of
the currently focused window. the currently focused window. _class_ are specific to X11 applications.
*con_id* *con_id*
Compare against the internal container ID, which you can find via IPC. If Compare against the internal container ID, which you can find via IPC. If

Loading…
Cancel
Save