From c248e96b849a125d88d0fffc744d0f98b8c558d9 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Thu, 8 Nov 2018 14:17:49 -0500 Subject: resize set: implement width and height keywords This implements the following syntaxes from `i3 4.16`: * `resize set [width] [px|ppt]` * `resize set height [px|ppt]` * `resize set [width] [px|ppt] [height] [px|ppt]` Additionally, a bug was fixed that caused setting the height of a tiled container to change the width instead due to a typo. --- sway/sway.5.scd | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'sway/sway.5.scd') diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 3bf6233d..8df59fc0 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -210,11 +210,23 @@ set|plus|minus 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|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. +*resize set* height [px|ppt] + Sets the height of the container to _height_, specified in pixels or + percentage points. If the units are omitted, floating containers are + resized in px and tiled containers by ppt. If _height_ is 0, the container + will not be resized. + +*resize set* [width] [px|ppt] + Sets the width of the container to _width_, specified in pixels or + percentage points. If the units are omitted, floating containers are + resized in px and tiled containers by ppt. If _width_ is 0, the container + will not be resized. + +*resize set* [width] [px|ppt] [height] [px|ppt] + Sets the width and height of the 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, the container will not be resized on that axis. *scratchpad show* Shows a window from the scratchpad. Repeatedly using this command will -- cgit v1.2.3