From 665ac5b7c3dac2f7eef3d70a3c8083f1b60f73da Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 11 Dec 2013 19:46:41 +0100 Subject: [PATCH] userguide: explain the difference between comma and semicolon for command chaining --- docs/userguide | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/userguide b/docs/userguide index db256cc4..666b9623 100644 --- a/docs/userguide +++ b/docs/userguide @@ -1289,6 +1289,11 @@ 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. +When using multiple commands, separate them by using a +,+ (a comma) instead of +a semicolon. Criteria apply only until the next semicolon, so if you use a +semicolon to separate commands, only the first one will be executed for the +matched window(s). + *Example*: ------------------------------------ # if you want to kill all windows which have the class Firefox, use: @@ -1299,6 +1304,9 @@ bindsym $mod+x [class="(?i)firefox"] kill # kill only the About dialog from Firefox bindsym $mod+x [class="Firefox" window_role="About"] kill + +# enable floating mode and move container to workspace 4 +for_window [class="^evil-app$"] floating enable, move container to workspace 4 ------------------------------------ The criteria which are currently implemented are: -- 2.39.5