diff options
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r-- | sway/sway.5.scd | 59 |
1 files changed, 44 insertions, 15 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 82df38e3..73a01152 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd | |||
@@ -84,6 +84,9 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1). | |||
84 | *floating* enable|disable|toggle | 84 | *floating* enable|disable|toggle |
85 | Make focused view floating, non-floating, or the opposite of what it is now. | 85 | Make focused view floating, non-floating, or the opposite of what it is now. |
86 | 86 | ||
87 | <criteria> *focus* | ||
88 | Moves focus to the container that matches the specified criteria. | ||
89 | |||
87 | *focus* up|right|down|left | 90 | *focus* up|right|down|left |
88 | Moves focus to the next container in the specified direction. | 91 | Moves focus to the next container in the specified direction. |
89 | 92 | ||
@@ -111,33 +114,53 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1). | |||
111 | *fullscreen* | 114 | *fullscreen* |
112 | Toggles fullscreen for the focused view. | 115 | Toggles fullscreen for the focused view. |
113 | 116 | ||
114 | *layout* splith|splitv|stacking|tabbed | 117 | *layout* default|splith|splitv|stacking|tabbed |
115 | Sets the layout mode of the focused container. | 118 | Sets the layout mode of the focused container. |
116 | 119 | ||
117 | *layout* toggle split | 120 | *layout* toggle [split|all] |
118 | Switches the focused container between the splitv and splith layouts. | 121 | Cycles the layout mode of the focused container though a preset list of |
122 | layouts. If no argument is given, then it cycles through stacking, tabbed | ||
123 | and the last split layout. If "split" is given, then it cycles through | ||
124 | splith and splitv. If "all" is given, then it cycles through every layout. | ||
125 | |||
126 | *layout* toggle [split|tabbed|stacking|splitv|splith] [split|tabbed|stacking|splitv|splith]... | ||
127 | Cycles the layout mode of the focused container through a list of layouts. | ||
119 | 128 | ||
120 | *move* left|right|up|down [<px>] | 129 | *move* left|right|up|down [<px> px] |
121 | Moves the focused container in the direction specified. If the container, | 130 | Moves the focused container in the direction specified. If the container, |
122 | the optional _px_ argument specifies how many pixels to move the container. | 131 | the optional _px_ argument specifies how many pixels to move the container. |
123 | If unspecified, the default is 10 pixels. Pixels are ignored when moving | 132 | If unspecified, the default is 10 pixels. Pixels are ignored when moving |
124 | tiled containers. | 133 | tiled containers. |
125 | 134 | ||
126 | *move* container|window to workspace <name> | 135 | *move* [absolute] position <pos_x> [px] <pos_y> [px] |
127 | Moves the focused container to the specified workspace. | 136 | Moves the focused container to the specified position. |
128 | 137 | ||
129 | *move* container|window to workspace prev|next | 138 | *move* [absolute] position center|mouse |
130 | Moves the focused container to the previous or next workspace on this | 139 | Moves the focused container to be centered on the workspace or mouse. |
131 | output, or if no workspaces remain, the previous or next output. | 140 | |
141 | *move* container|window [to] mark <mark> | ||
142 | Moves the focused container to the specified mark. | ||
143 | |||
144 | *move* [--no-auto-back-and-forth] container|window [to] workspace [number] <name> | ||
145 | Moves the focused container to the specified workspace. The string "number" | ||
146 | is optional and is used to match a workspace with the same number, even if | ||
147 | it has a different name. | ||
132 | 148 | ||
133 | *move* container|window to workspace prev\_on\_output|next\_on\_output | 149 | *move* container|window [to] workspace prev|next|current |
150 | Moves the focused container to the previous, next or current workspace on | ||
151 | this output, or if no workspaces remain, the previous or next output. | ||
152 | |||
153 | *move* container|window [to] workspace prev\_on\_output|next\_on\_output | ||
134 | Moves the focused container to the previous or next workspace on this | 154 | Moves the focused container to the previous or next workspace on this |
135 | output, wrapping around if already at the first or last workspace. | 155 | output, wrapping around if already at the first or last workspace. |
136 | 156 | ||
137 | *move* container|window|workspace to output <name> | 157 | *move* container|window [to] workspace back_and_forth |
158 | Moves the focused container to previously focused workspace. | ||
159 | |||
160 | *move* container|window|workspace [to] output <name> | ||
138 | Moves the focused container or workspace to the specified output. | 161 | Moves the focused container or workspace to the specified output. |
139 | 162 | ||
140 | *move* container|window|workspace to output up|right|down|left | 163 | *move* container|window|workspace [to] output up|right|down|left |
141 | Moves the focused container or workspace to next output in the specified | 164 | Moves the focused container or workspace to next output in the specified |
142 | direction. | 165 | direction. |
143 | 166 | ||
@@ -511,7 +534,7 @@ config after the others, or it will be matched instead of the others. | |||
511 | state. Using _allow_ or _deny_ controls the window's ability to set itself | 534 | state. Using _allow_ or _deny_ controls the window's ability to set itself |
512 | as urgent. By default, windows are allowed to set their own urgency. | 535 | as urgent. By default, windows are allowed to set their own urgency. |
513 | 536 | ||
514 | *workspace* [number] <name> | 537 | *workspace* [--no-auto-back-and-forth] [number] <name> |
515 | Switches to the specified workspace. The string "number" is optional and is | 538 | Switches to the specified workspace. The string "number" is optional and is |
516 | used to sort workspaces. | 539 | used to sort workspaces. |
517 | 540 | ||
@@ -522,6 +545,9 @@ config after the others, or it will be matched instead of the others. | |||
522 | *workspace* prev\_on\_output|next\_on\_output | 545 | *workspace* prev\_on\_output|next\_on\_output |
523 | Switches to the next workspace on the current output. | 546 | Switches to the next workspace on the current output. |
524 | 547 | ||
548 | *workspace* back_and_forth | ||
549 | Switches to the previously focused workspace. | ||
550 | |||
525 | *workspace* <name> output <output> | 551 | *workspace* <name> output <output> |
526 | Specifies that workspace _name_ should be shown on the specified _output_. | 552 | Specifies that workspace _name_ should be shown on the specified _output_. |
527 | 553 | ||
@@ -582,7 +608,9 @@ The following attributes may be matched with: | |||
582 | the currently focused window. | 608 | the currently focused window. |
583 | 609 | ||
584 | *con\_id* | 610 | *con\_id* |
585 | Compare against the internal container ID, which you can find via IPC. | 611 | Compare against the internal container ID, which you can find via IPC. If |
612 | value is \_\_focused\_\_, then the id must be the same as that of the | ||
613 | currently focused window. | ||
586 | 614 | ||
587 | *con\_mark* | 615 | *con\_mark* |
588 | Compare against the window marks. Can be a regular expression. | 616 | Compare against the window marks. Can be a regular expression. |
@@ -612,7 +640,8 @@ The following attributes may be matched with: | |||
612 | currently focused window. | 640 | currently focused window. |
613 | 641 | ||
614 | *urgent* | 642 | *urgent* |
615 | Compares the urgent state of the window. Can be "latest" or "oldest". | 643 | Compares the urgent state of the window. Can be "first", "last", "latest", |
644 | "newest", "oldest" or "recent". | ||
616 | 645 | ||
617 | *window\_role* | 646 | *window\_role* |
618 | Compare against the window role (WM\_WINDOW\_ROLE). Can be a regular | 647 | Compare against the window role (WM\_WINDOW\_ROLE). Can be a regular |