aboutsummaryrefslogtreecommitdiff
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorBrian Ashworth <RedSoxFan@users.noreply.github.com>2018-08-09 20:04:33 -0400
committerGitHub <noreply@github.com>2018-08-09 20:04:33 -0400
commitdf1aeed6c2eb74050de9cced3917500c801855a7 (patch)
tree0d697c0f097e8a24949fdf7a52bf5a6c3ca5c6ba /sway/sway.5.scd
parentdb0fa066e597fffba92fc23b2f78f094b0ccaf0b (diff)
parentaf693cba26773ea639644529453900a7ed48a5f6 (diff)
Merge pull request #2441 from RyanDwyer/finish-resize-commands
Finish resize commands
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd18
1 files changed, 9 insertions, 9 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 31ab281b..a09d06c2 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -170,16 +170,16 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1).
*reload*
Reloads the sway config file and applies any changes.
-*resize* shrink|grow width|height [<amount>] [px|ppt]
+*resize* shrink|grow width|height [<amount> [px|ppt]]
Resizes the currently focused container by _amount_, specified in pixels or
- percentage points. If omitted, floating containers are resized in px and
- tiled containers by ppt. If omitted, the default _amount_ is 10.
-
-*resize set* <width> [px] <height> [px]
- Sets the width and height of the currently focused container to _width_
- pixels and _height_ pixels. The [px] parameters are optional and have no
- effect. This command only accepts a size in pixels. Width and height may be
- specified in either order.
+ percentage points. If the units are omitted, floating containers are resized
+ in px and tiled containers by ppt. _amount_ will default to 10 if omitted.
+
+*resize set* <width> [px|ppt] <height> [px|ppt]
+ Sets the width and height of the currently focused container to _width_ and
+ _height_, specified in pixels or percentage points. If the units are
+ omitted, floating containers are resized in px and tiled containers by ppt.
+ If _width_ or _height_ is 0, no resize is done on that axis.
*scratchpad show*
Shows a window from the scratchpad. Repeatedly using this command will