mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Implement window resize animations
This commit is contained in:
@@ -38,6 +38,10 @@ animations {
|
||||
curve "ease-out-quad"
|
||||
}
|
||||
|
||||
window-resize {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
}
|
||||
|
||||
config-notification-open-close {
|
||||
spring damping-ratio=0.6 stiffness=1000 epsilon=0.001
|
||||
}
|
||||
@@ -196,6 +200,23 @@ animations {
|
||||
}
|
||||
```
|
||||
|
||||
#### `window-resize`
|
||||
|
||||
<sup>Since: 0.1.5</sup>
|
||||
|
||||
Window resize animation.
|
||||
|
||||
Only manual window resizes are animated, i.e. when you resize the window with `switch-preset-column-width` or `maximize-column`.
|
||||
Also, very small resizes (up to 10 pixels) are not animated.
|
||||
|
||||
```
|
||||
animations {
|
||||
window-resize {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### `config-notification-open-close`
|
||||
|
||||
The open/close animation of the config parse error and new default config notifications.
|
||||
|
||||
Reference in New Issue
Block a user