diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 17:05:15 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 17:14:24 +0400 |
| commit | 6424a2738db6349de62dab150d5d6f1d431ca6c4 (patch) | |
| tree | 39adaf858ec3ee8661a40be6b4792df215ab4368 /resources | |
| parent | 753a90430abbdf166a86b95c5c69aa1e68b3c412 (diff) | |
| download | niri-6424a2738db6349de62dab150d5d6f1d431ca6c4.tar.gz niri-6424a2738db6349de62dab150d5d6f1d431ca6c4.tar.bz2 niri-6424a2738db6349de62dab150d5d6f1d431ca6c4.zip | |
Make all animations configurable
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/default-config.kdl | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 268f3fd8..499a9c81 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -198,6 +198,52 @@ hotkey-overlay { // skip-at-startup } +// Animation settings. +animations { + // Uncomment to turn off all animations. + // off + + // Slow down all animations by this factor. Values below 1 speed them up instead. + // slowdown 3.0 + + // You can configure all individual animations. + // Available settings are the same for all of them. + + // Animation when switching workspaces up and down, + // including after the touchpad gesture. + workspace-switch { + // off + // duration-ms 250 + // curve "ease-out-cubic" + } + + // All horizontal camera view movement: + // - 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. + // - When a window resizes bigger and the camera scrolls to show it in full. + // - And so on. + horizontal-view-movement { + // off + // duration-ms 250 + // curve "ease-out-cubic" + } + + // Window opening animation. Note that this one has different defaults. + window-open { + // off + // duration-ms 150 + // curve "ease-out-expo" + } + + // Config parse error and new default config creation notification + // open/close animation. + config-notification-open-close { + // off + // duration-ms 250 + // curve "ease-out-cubic" + } +} + binds { // Keys consist of modifiers separated by + signs, followed by an XKB key name // in the end. To find an XKB name for a particular key, you may use a program @@ -385,9 +431,6 @@ debug { // The cursor will be rendered together with the rest of the frame. // disable-cursor-plane - // Slow down animations by this factor. - // animation-slowdown 3.0 - // Override the DRM device that niri will use for all rendering. // render-drm-device "/dev/dri/renderD129" } |
