X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=docs%2Fuserguide;h=db256cc48f0b6c0fa4dfe66b5f3d23413ad3ba19;hb=3dba51500ede957394f0dafa4bd71c9123ee05f1;hp=a0862e647f019d49faedbef7519d8c933c3c2265;hpb=f3bf314662e739e4c0ab3264e793871983242325;p=i3%2Fi3 diff --git a/docs/userguide b/docs/userguide index a0862e64..db256cc4 100644 --- a/docs/userguide +++ b/docs/userguide @@ -1285,16 +1285,20 @@ bindsym $mod+x move container to workspace 3; workspace 3 [[command_criteria]] 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 -prefixed in square brackets to every command. If you want to kill all windows -which have the class Firefox, use: +should be affected by that command, by using various criteria. The criteria +are specified before any command in a pair of square brackets and are separated +by space. *Example*: ------------------------------------ +# if you want to kill all windows which have the class Firefox, use: bindsym $mod+x [class="Firefox"] kill # same thing, but case-insensitive 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: