Update userguide on multiple criteria

Change wording, add an example for multiple criteria and move
the sentence explaining the Firefox example into the code listing
block.
This commit is contained in:
Trung Ngo 2013-11-10 16:10:17 +07:00 committed by Michael Stapelberg
parent f3bf314662
commit 3dba51500e
1 changed files with 7 additions and 3 deletions

View File

@ -1285,16 +1285,20 @@ bindsym $mod+x move container to workspace 3; workspace 3
[[command_criteria]] [[command_criteria]]
Furthermore, you can change the scope of a command - that is, which containers Furthermore, you can change the scope of a command - that is, which containers
should be affected by that command, by using various criteria. These are should be affected by that command, by using various criteria. The criteria
prefixed in square brackets to every command. If you want to kill all windows are specified before any command in a pair of square brackets and are separated
which have the class Firefox, use: by space.
*Example*: *Example*:
------------------------------------ ------------------------------------
# if you want to kill all windows which have the class Firefox, use:
bindsym $mod+x [class="Firefox"] kill bindsym $mod+x [class="Firefox"] kill
# same thing, but case-insensitive # same thing, but case-insensitive
bindsym $mod+x [class="(?i)firefox"] kill bindsym $mod+x [class="(?i)firefox"] kill
# kill only the About dialog from Firefox
bindsym $mod+x [class="Firefox" window_role="About"] kill
------------------------------------ ------------------------------------
The criteria which are currently implemented are: The criteria which are currently implemented are: