aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.txt
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin@gmail.com>2016-07-03 12:11:21 -0500
committerLibravatar Zandr Martin <zandrmartin@gmail.com>2016-07-03 12:11:21 -0500
commitd5e4fff34544deda97f9f7d26eb1cb391fcc86bf (patch)
treeb053d7c2e9cc7651991aea1254a6f1f5232aea7c /sway/sway.5.txt
parentmatch i3 syntax for `resize set` (diff)
downloadsway-d5e4fff34544deda97f9f7d26eb1cb391fcc86bf.tar.gz
sway-d5e4fff34544deda97f9f7d26eb1cb391fcc86bf.tar.zst
sway-d5e4fff34544deda97f9f7d26eb1cb391fcc86bf.zip
resize command updates (#713)
Diffstat (limited to 'sway/sway.5.txt')
-rw-r--r--sway/sway.5.txt31
1 files changed, 21 insertions, 10 deletions
diff --git a/sway/sway.5.txt b/sway/sway.5.txt
index 76d09edb..18b693f8 100644
--- a/sway/sway.5.txt
+++ b/sway/sway.5.txt
@@ -94,13 +94,24 @@ They are expected to be used with **bindsym** or at runtime through **swaymsg**(
94**reload**:: 94**reload**::
95 Reloads the sway config file without restarting sway. 95 Reloads the sway config file without restarting sway.
96 96
97**resize** <shrink|grow> <width|height> <amount>:: 97**resize** <shrink|grow> <width|height> [<amount>] [px|ppt]::
98 Resizes the currently focused container or view by _amount_. _amount_ can be 98 Resizes the currently focused container or view by _amount_. _amount_ is
99 specified as "n px" or "n ppt" or "n px or n ppt". 99 optional: the default value is 10 (either px or ppt depending on the view
100 100 type). The [px|ppt] parameter is optional. _px_ specifies that _amount_ refers
101**resize** <width|height> <amount>:: 101 to pixels; _ppt_ specifies that _amount_ refers to percentage points of the
102 Sets the _width_ or _height_ of the currently focused container to _amount_. 102 current dimension. Floating views use px dimensions by default (but can use
103 _amount_ can be specified as "n px" or "n ppt" or "n px or n ppt". 103 ppt if specified); tiled views use ppt dimensions by default (but can use px
104 if specified).
105
106**resize set** <width> [px] <height> [px]::
107 Sets the width and height of the currently focused container to _width_ pixels
108 and _height_ pixels. The [px] parameters are optional and have no effect. This
109 command only accepts pixel dimensions.
110
111**resize set** <width|height> <amount> [px] [<width|height> <amount> [px]]::
112 Sets the _width_ and/or _height_ of the currently focused container to
113 _amount_. The [px] parameters are optional and have no effect. This command
114 only accepts pixel dimensions.
104 115
105**split** <vertical|v|horizontal|h|toggle|t>:: 116**split** <vertical|v|horizontal|h|toggle|t>::
106 Splits the current container, vertically or horizontally. If toggled then the 117 Splits the current container, vertically or horizontally. If toggled then the
@@ -200,7 +211,7 @@ The default colors are:
200**floating_maximum_size** <width> x <height>:: 211**floating_maximum_size** <width> x <height>::
201 Specifies the maximum dimensions of floating windows. 212 Specifies the maximum dimensions of floating windows.
202 Uses the container dimensions as default. 213 Uses the container dimensions as default.
203 -1 x -1 will remove any restriction on dimentions. 214 -1 x -1 will remove any restriction on dimensions.
204 0 x 0 has the same behavior as not setting any value. 215 0 x 0 has the same behavior as not setting any value.
205 If in conflict this option has precedence over floating_minimum_size. 216 If in conflict this option has precedence over floating_minimum_size.
206 217
@@ -214,7 +225,7 @@ The default colors are:
214 windows, and right click to resize them. Unlike i3, this modifier may also be 225 windows, and right click to resize them. Unlike i3, this modifier may also be
215 used to resize and move windows that are tiled. With the _inverse_ mode 226 used to resize and move windows that are tiled. With the _inverse_ mode
216 enabled, left click is used for resizing and right click for dragging. The 227 enabled, left click is used for resizing and right click for dragging. The
217 mode paramenter is optional and defaults to _normal_ if it isn't defined. 228 mode parameter is optional and defaults to _normal_ if it isn't defined.
218 229
219**floating_scroll** <up|down|left|right> [command]:: 230**floating_scroll** <up|down|left|right> [command]::
220 Sets a command to be executed when the mouse wheel is scrolled in the 231 Sets a command to be executed when the mouse wheel is scrolled in the
@@ -263,7 +274,7 @@ The default colors are:
263 than one child container. 274 than one child container.
264 275
265**mode** <mode_name>:: 276**mode** <mode_name>::
266 Switches to the given mode_name. the default mode is simply _default_. To 277 Switches to the given mode_name. The default mode is simply _default_. To
267 create a new mode in config append _{_ to this command, the following lines 278 create a new mode in config append _{_ to this command, the following lines
268 will be keybinds for that mode, and _}_ on its own line to close the block. 279 will be keybinds for that mode, and _}_ on its own line to close the block.
269 280