From 27dd3bae91b8d9250d17cd5b228c52b4216284f1 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Mon, 1 Jun 2026 14:06:21 +0200 Subject: [PATCH] hypr: add a lively spring to the window-open animation Give windowsIn a snappy spring so windows pop in with a touch of life, while window movement stays on the crisp easeOutQuint curve. --- dot_config/hypr/hyprland.d.lua/general.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_config/hypr/hyprland.d.lua/general.lua b/dot_config/hypr/hyprland.d.lua/general.lua index af6deac..c5a7394 100644 --- a/dot_config/hypr/hyprland.d.lua/general.lua +++ b/dot_config/hypr/hyprland.d.lua/general.lua @@ -64,12 +64,13 @@ hl.curve("linear", { type = "bezier", points = { {0, 0}, {1, 1} } }) hl.curve("almostLinear", { type = "bezier", points = { {0.5, 0.5}, {0.75, 1.0} } }) hl.curve("quick", { type = "bezier", points = { {0.15, 0}, {0.1, 1} } }) hl.curve("bouncy", { type = "spring", mass = 1, stiffness = 100, dampening = 15 }) -- NEW: Spring curve +hl.curve("snappy", { type = "spring", mass = 1, stiffness = 165, dampening = 17 }) -- lively window-open pop -- Animations hl.animation({ leaf = "global", enabled = true, speed = 10, bezier = "default" }) hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" }) hl.animation({ leaf = "windows", enabled = true, speed = 4.79, bezier = "easeOutQuint" }) -hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, bezier = "easeOutQuint", style = "popin 87%" }) +hl.animation({ leaf = "windowsIn", enabled = true, spring = "snappy", style = "popin 90%" }) hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" }) hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" }) hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" })