Skip to main content
Niri has several animations which you can configure in the same way. Additionally, you can disable or slow down all animations at once.

Quick Overview

Here’s a quick glance at the available animations with their default values:

Global Animation Controls

Disable All Animations

Slow Down Animations

number
Slow down all animations by this factor. Values below 1 speed them up instead.

Animation Types

There are two animation types: easing and spring. Each animation can be either an easing or a spring.

Easing

This is a relatively common animation type that changes the value over a set duration using an interpolation curve.
number
Duration of the animation in milliseconds.
string
The easing curve to use. Available options:
  • "ease-out-quad" (since 0.1.5)
  • "ease-out-cubic"
  • "ease-out-expo"
  • "linear" (since 0.1.6)
  • "cubic-bezier" (since 25.08) - Custom cubic Bézier curve

Custom Cubic Bézier

Available since version 25.08
A custom cubic Bézier curve. You need to set 4 numbers defining the control points of the curve:
You can tweak the cubic-bezier parameters on pages like easings.co or preview curves at easings.net.

Spring

Spring animations use a model of a physical spring to animate the value. They notably feel better with touchpad gestures, because they take into account the velocity of your fingers as you release the swipe. Springs can also oscillate/bounce at the end with the right parameters if you like that sort of thing, but they don’t have to (and by default they mostly don’t).
You can use the Elastic app to help visualize how the spring parameters change the animation.
A spring animation is configured with three mandatory parameters:
number
default:"1.0"
Goes from 0.1 to 10.0:
  • below 1.0: underdamped spring, will oscillate in the end
  • 1.0: critically damped spring, comes to rest in minimum possible time without oscillations
  • above 1.0: overdamped spring, won’t oscillate
Overdamped springs currently have some numerical stability issues and may cause graphical glitches. Therefore, setting damping-ratio above 1.0 is not recommended.
number
Lower stiffness results in a slower animation more prone to oscillation.
number
Set to a lower value if the animation “jumps” at the end.
The spring mass (which you can see in Elastic) is hardcoded to 1.0 and cannot be changed. Instead, change stiffness proportionally. E.g. increasing mass by 2× is the same as decreasing stiffness by 2×.

Individual Animations

workspace-switch

spring
Animation when switching workspaces up and down, including after the vertical touchpad gesture. A spring is recommended for this animation.

window-open

easing
Window opening animation. Uses an easing type by default.

Custom Shader

Available since version 0.1.6
Custom shaders do not have a backwards compatibility guarantee. The interface may change as new features are developed.
You can write a custom shader for drawing the window during an open animation. See the example shader for full documentation.

window-close

Available since version 0.1.5
easing
Window closing animation. Uses an easing type by default.
Custom shaders are also supported for window-close. See the example shader for details.

horizontal-view-movement

spring
All horizontal camera view movement animations, such as:
  • When a window off-screen is focused and the camera scrolls to it
  • When a new window appears off-screen and the camera scrolls to it
  • After a horizontal touchpad gesture (a spring is recommended)

window-movement

Available since version 0.1.5
spring
Movement of individual windows within a workspace. Includes:
  • Moving window columns with move-column-left and move-column-right
  • Moving windows inside a column with move-window-up and move-window-down
  • Moving windows out of the way upon window opening and closing
  • Window movement between columns when consuming/expelling
This animation does not include camera view movement, such as scrolling the workspace left and right.

window-resize

Available since version 0.1.5
spring
Window resize animation. Only manual window resizes are animated (when you resize with switch-preset-column-width or maximize-column). Very small resizes (up to 10 pixels) are not animated.
Custom shaders are also supported for window-resize. See the example shader for details.

config-notification-open-close

spring
The open/close animation of the config parse error and new default config notifications. Uses an underdamped spring by default (damping-ratio=0.6) which causes a slight oscillation.

exit-confirmation-open-close

Available since version 25.08
spring
The open/close animation of the exit confirmation dialog. Uses an underdamped spring by default (damping-ratio=0.6) which causes a slight oscillation.

screenshot-ui-open

Available since version 0.1.8
easing
The open (fade-in) animation of the screenshot UI.

overview-open-close

Available since version 25.05
spring
The open/close zoom animation of the Overview.

recent-windows-close

Available since version 25.11
spring
The close fade-out animation of the recent windows switcher.

Synchronized Animations

Available since version 0.1.5
Sometimes, when two animations are meant to play together synchronized, niri will drive them both with the same configuration. For example:
  • If a window resize causes the view to move, that view movement animation will use the window-resize configuration (rather than horizontal-view-movement)
  • Resizing a window in a column vertically causes other windows to move up or down, using the window-resize configuration (rather than window-movement)
This is especially important for animated resizes to look good when using center-focused-column "always".
For the best results, consider using the same parameters for related animations (they are all the same by default):
  • horizontal-view-movement
  • window-movement
  • window-resize