i3 - improved tiling WM


Update userguide on multiple criteria

Patch status: merged

Patch by Trung Ngo

Long description:

Change wording, add an example for multiple criteria and move
the sentence explaining the Firefox example into the code listing
block.

To apply this patch, use:
curl http://cr.i3wm.org/patch/304/raw.patch | git am

b/docs/userguide

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