diff options
Diffstat (limited to 'sway.5.txt')
-rw-r--r-- | sway.5.txt | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -68,6 +68,10 @@ Commands | |||
68 | **fullscreen**:: | 68 | **fullscreen**:: |
69 | Toggles fullscreen status for the focused view. | 69 | Toggles fullscreen status for the focused view. |
70 | 70 | ||
71 | **for_window** <criteria> <command>:: | ||
72 | Whenever a window that matches _criteria_ appears, run list of commands. See | ||
73 | **Criteria** section below. | ||
74 | |||
71 | **gaps** edge_gaps <on|off|toggle>:: | 75 | **gaps** edge_gaps <on|off|toggle>:: |
72 | Whether or not to add gaps between views and workspace edges if amount of | 76 | Whether or not to add gaps between views and workspace edges if amount of |
73 | inner gap is not zero. When _no_, no gap is added where the view is aligned to | 77 | inner gap is not zero. When _no_, no gap is added where the view is aligned to |
@@ -175,3 +179,34 @@ Commands | |||
175 | **workspace** <name> output <output>:: | 179 | **workspace** <name> output <output>:: |
176 | Specifies that the workspace named _name_ should appear on the specified | 180 | Specifies that the workspace named _name_ should appear on the specified |
177 | _output_. | 181 | _output_. |
182 | |||
183 | Criteria | ||
184 | -------- | ||
185 | |||
186 | A criteria is a string in the form of e.g.: | ||
187 | |||
188 | [class="[Rr]egex.*" title="some title"] | ||
189 | |||
190 | The string contains one or more (space separated) attribute/value pairs and they | ||
191 | are used by some commands filter which views to execute actions on. All attributes | ||
192 | must match for the criteria string to match. | ||
193 | |||
194 | Currently supported attributes: | ||
195 | |||
196 | **class**:: | ||
197 | Compare value against the window class. Can be a regular expression. If value | ||
198 | is _focused_ then the window class must be the same as that of the currently | ||
199 | focused window. | ||
200 | |||
201 | **id**:: | ||
202 | Compare value against the app id. Can be a regular expression. | ||
203 | |||
204 | **title**:: | ||
205 | Compare against the window title. Can be a regular expression. If value is | ||
206 | _focused_ then the window title must be the same as that of the currently | ||
207 | focused window. | ||
208 | |||
209 | **workspace**:: | ||
210 | Compare against the workspace name for this view. Can be a regular expression. | ||
211 | If value is _focused_ then all the views on the currently focused workspace | ||
212 | matches. | ||