-
Notifications
You must be signed in to change notification settings - Fork 25
magnify
fdev31 edited this page Apr 23, 2024
·
21 revisions
-
zoom [value]- If no value is provided, toggles magnification.
- If an integer is provided, it will set as scaling factor.
- If this integer is prefixed with "+" or "-", it will update the current scale factor (added in version 2.1.4).
- Use "++" or "--", to use a more natural non-linear scale (added in version 2.2.9).
Note
The non-linear scale is calculated as powers of two, eg:
-
zoom ++1→ 2x, 4x, 8x, 16x, 32x, ... -
zoom ++0.7→ 1.6x, 2.6x, 4.3x, 7.0x, 11.3x, 18.4x, 29.9x, ... -
zoom ++0.5→ 1.4x, 2x, 2.8x, 4x, 5.7x, 8x, 11.3x, 16x, 22.6x, ...
Sample hyprland.conf:
bind = $mainMod , Z, exec, pypr zoom ++0.5
bind = $mainMod SHIFT, Z, exec, pypr zoomdefault value is 2
Scaling factor to be used when no value is provided.
pypr zoom # sets zoom to `factor` (2 by default)
pypr zoom +1 # will set zoom to 3x
pypr zoom # will set zoom to 1x
pypr zoom 1 # will (also) set zoom to 1x - effectively doing nothingAdded in version 2.2.9
Default value is 15
Duration in tenths of a second for the zoom animation to last, set to 0 to disable animations.