Keep aspect ratio (#287)

This commit is contained in:
MightyPlaza 2023-08-08 16:53:03 +00:00 committed by GitHub
parent 4bdd8eea17
commit e921b954a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -175,10 +175,10 @@ with your mouse.
_Available mouse binds_: _Available mouse binds_:
| Name | Description | | Name | Description | Params |
| -----|------------ | | -----|------------ |--------|
| movewindow | moves the active window | | movewindow | moves the active window | none |
| resizewindow | resizes the active window | | resizewindow | resizes the active window | 1 - resize and keep window aspect ratio, 2 - resize and ignore `keepaspectratio` window rule/prop, none or anything else for normal resize |
_Common mouse buttons' codes:_ _Common mouse buttons' codes:_

View file

@ -187,6 +187,7 @@ Prop List:
| windowdancecompat | 0/1 | | windowdancecompat | 0/1 |
| nomaxsize | 0/1 | | nomaxsize | 0/1 |
| dimaround | 0/1 | | dimaround | 0/1 |
| keepaspectratio | 0/1 |
| alphaoverride | 0/1, makes the next setting be override instead of multiply | | alphaoverride | 0/1, makes the next setting be override instead of multiply |
| alpha | float 0.0 - 1.0 | | alpha | float 0.0 - 1.0 |
| alphainactiveoverride | 0/1, makes the next setting be override instead of multiply | | alphainactiveoverride | 0/1, makes the next setting be override instead of multiply |

View file

@ -106,6 +106,7 @@ you can use `hyprctl clients`.
| windowdance | forces an XWayland window to never refocus, used for games/applications like Rhythm Doctor | | | windowdance | forces an XWayland window to never refocus, used for games/applications like Rhythm Doctor | |
| pin | pins the window *note: floating only* | | | pin | pins the window *note: floating only* | |
| noanim | disables the animations for the window |✓| | noanim | disables the animations for the window |✓|
| keepaspectratio | forces aspect ratio when resizing window with the mouse |✓|
| bordercolor \[c\] | force the bordercolor of the window. Options for c: `color` -> sets the active border color OR `color color` -> sets the active and inactive border color of the window. See [variables->colors](../Variables#variable_types) for color definition. |✓| | bordercolor \[c\] | force the bordercolor of the window. Options for c: `color` -> sets the active border color OR `color color` -> sets the active and inactive border color of the window. See [variables->colors](../Variables#variable_types) for color definition. |✓|
| idleinhibit \[mode\] | sets an idle inhibit rule for the window. If active, apps like `swayidle` will not fire. Modes: `none`, `always`, `focus`, `fullscreen` | | | idleinhibit \[mode\] | sets an idle inhibit rule for the window. If active, apps like `swayidle` will not fire. Modes: `none`, `always`, `focus`, `fullscreen` | |
| unset | removes all previously set rules for the given parameters. Please note it has to match EXACTLY. | | | unset | removes all previously set rules for the given parameters. Please note it has to match EXACTLY. | |