mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
resize set: implement width and height keywords
This implements the following syntaxes from `i3 4.16`: * `resize set [width] <width> [px|ppt]` * `resize set height <height> [px|ppt]` * `resize set [width] <width> [px|ppt] [height] <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.
This commit is contained in:
parent
0bc819dd8b
commit
c248e96b84
2 changed files with 46 additions and 23 deletions
|
|
@ -210,11 +210,23 @@ set|plus|minus <amount>
|
|||
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.
|
||||
*resize set* height <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] <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] <width> [px|ppt] [height] <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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue