From af693cba26773ea639644529453900a7ed48a5f6 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 10 Aug 2018 08:50:38 +1000 Subject: [PATCH] Update resize documentation --- sway/sway.5.scd | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 [] [px|ppt] +*resize* shrink|grow width|height [ [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. + 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* [px] [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. +*resize set* [px|ppt] [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