aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd23
1 files changed, 20 insertions, 3 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index ff138562..5d99c9d6 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -167,6 +167,15 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1).
167 "Sticks" a floating window to the current output so that it shows up on all 167 "Sticks" a floating window to the current output so that it shows up on all
168 workspaces. 168 workspaces.
169 169
170*swap* container with id|con\_id|mark <arg>
171 Swaps the position, geometry, and fullscreen status of two containers. The
172 first container can be selected either by criteria or focus. The second
173 container can be selected by _id_, _con\_id_, or _mark_. _id_ can only be
174 used with xwayland views. If the first container has focus, it will retain
175 focus unless it is moved to a different workspace or the second container
176 becomes fullscreen on the same workspace as the first container. In either
177 of those cases, the second container will gain focus.
178
170The following commands may be used either in the configuration file or at 179The following commands may be used either in the configuration file or at
171runtime. 180runtime.
172 181
@@ -177,17 +186,20 @@ runtime.
177 186
178 for\_window <criteria> move container to workspace <workspace> 187 for\_window <criteria> move container to workspace <workspace>
179 188
180*bindsym* <key combo> <command> 189*bindsym* [--release|--locked] <key combo> <command>
181 Binds _key combo_ to execute the sway command _command_ when pressed. You 190 Binds _key combo_ to execute the sway command _command_ when pressed. You
182 may use XKB key names here (*xev*(1) is a good tool for discovering these). 191 may use XKB key names here (*xev*(1) is a good tool for discovering these).
192 With the flag _--release_, the command is executed when the key combo is
193 released. Unless the flag _--locked_ is set, the command will not be run
194 when a screen locking program is active.
183 195
184 Example: 196 Example:
185 197
186 # Execute firefox when alt, shift, and f are pressed together 198 # Execute firefox when alt, shift, and f are pressed together
187 bindsym Mod1+Shift+f exec firefox 199 bindsym Mod1+Shift+f exec firefox
188 200
189 *bindcode* <code> <command> is also available for binding with key codes 201 *bindcode* [--release|--locked] <code> <command> is also available for
190 instead of key names. 202 binding with key codes instead of key names.
191 203
192*client.<class>* <border> <background> <text> <indicator> <child\_border> 204*client.<class>* <border> <background> <text> <indicator> <child\_border>
193 Configures the color of window borders and title bars. All 5 colors are 205 Configures the color of window borders and title bars. All 5 colors are
@@ -551,6 +563,11 @@ The following attributes may be matched with:
551 value is \_\_focused\_\_, then the window instance must be the same as that 563 value is \_\_focused\_\_, then the window instance must be the same as that
552 of the currently focused window. 564 of the currently focused window.
553 565
566*shell*
567 Compare value against the window shell, such as "xdg\_shell" or "xwayland".
568 Can be a regular expression. If value is \_\_focused\_\_, then the shell
569 must be the same as that of the currently focused window.
570
554*tiling* 571*tiling*
555 Matches tiling windows. 572 Matches tiling windows.
556 573