From 8211d509dfa68b8a45c2dfe921318b0a66df13b8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 17:03:04 +1000 Subject: [PATCH] animations: use material curves --- hyprland/animations.conf | 27 +++++++++++++-------------- hyprland/rules.conf | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/hyprland/animations.conf b/hyprland/animations.conf index 5b3647d..d22ddd8 100644 --- a/hyprland/animations.conf +++ b/hyprland/animations.conf @@ -2,25 +2,24 @@ animations { enabled = true # Animation curves - bezier = linear, 0, 0, 1, 1 - bezier = tinyshot, 0.05, 0.9, 0.1, 1.05 - bezier = workSwitch, 0.1, 1, 0, 1 bezier = specialWorkSwitch, 0.05, 0.7, 0.1, 1 - bezier = quart, 0.25, 1, 0.5, 1 + bezier = emphasizedAccel, 0.3, 0, 0.8, 0.15 + bezier = emphasizedDecel, 0.05, 0.7, 0.1, 1 + bezier = standard, 0.2, 0, 0, 1 # Animation configs - animation = layersIn, 1, 3, tinyshot, slide 85% - animation = layersOut, 1, 3, tinyshot, slide 85% + animation = layersIn, 1, 5, emphasizedDecel, slide + animation = layersOut, 1, 4, emphasizedAccel, slide + animation = fadeLayers, 1, 5, standard - animation = windows, 1, 6, quart, slide - animation = workspaces, 1, 6, quart + animation = windowsIn, 1, 5, emphasizedDecel + animation = windowsOut, 1, 3, emphasizedAccel + animation = windowsMove, 1, 6, standard + animation = workspaces, 1, 5, standard animation = specialWorkspace, 1, 4, specialWorkSwitch, slidefadevert 15% - animation = fade, 1, 6, quart - animation = fadeDim, 1, 6, quart - animation = border, 1, 6, quart - animation = borderangle, 1, 6, quart - - animation = fadeLayersIn, 1, 2, linear + animation = fade, 1, 6, standard + animation = fadeDim, 1, 6, standard + animation = border, 1, 6, standard } diff --git a/hyprland/rules.conf b/hyprland/rules.conf index 63af351..d2d1cb5 100644 --- a/hyprland/rules.conf +++ b/hyprland/rules.conf @@ -82,7 +82,7 @@ layerrule = animation popin 80%, launcher layerrule = blur, launcher # Shell -layerrule = animation popin 80%, caelestia-launcher +layerrule = animation popin, caelestia-launcher layerrule = animation fade, caelestia-session layerrule = animation fade, caelestia-lock-(caps|num) layerrule = animation fade, caelestia-tooltip