From 4f49b43a30483ab152d6201182310cf01de87eb5 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Thu, 6 Aug 2026 15:44:38 -0400 Subject: Fixed Spring-curves to work with HL 0.56+ Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/animations/Spring-curves.conf modified: config/hypr/animations/Spring-curves.lua --- config/hypr/animations/Spring-curves.conf | 4 +++- config/hypr/animations/Spring-curves.lua | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'config/hypr') diff --git a/config/hypr/animations/Spring-curves.conf b/config/hypr/animations/Spring-curves.conf index 1663d16e..e59ef0f0 100644 --- a/config/hypr/animations/Spring-curves.conf +++ b/config/hypr/animations/Spring-curves.conf @@ -5,7 +5,9 @@ animations { enabled = yes - # Hyprland .conf uses bezier curves; these approximate the Lua spring presets. + # Legacy hyprlang has no real spring curves. These beziers approximate the + # Lua Spring-curves.lua presets and are unaffected by the HL 0.56 spring + # wall-clock timing change (only type = "spring" curves need retuning). bezier = spring_fast, 0.18, 0.88, 0.14, 1.0 bezier = spring_slow, 0.25, 0.82, 0.18, 1.0 diff --git a/config/hypr/animations/Spring-curves.lua b/config/hypr/animations/Spring-curves.lua index fefc3731..81701119 100644 --- a/config/hypr/animations/Spring-curves.lua +++ b/config/hypr/animations/Spring-curves.lua @@ -1,6 +1,9 @@ -- Spring Curves -hl.curve("spring_fast", { type = "spring", mass = 2, stiffness = 30, dampening = 15 }) -hl.curve("spring_slow", { type = "spring", mass = 2, stiffness = 15, dampening = 10 }) +-- HL 0.56+ advances springs by real wall-clock time (no min tick floor). +-- Pre-0.56 soft values (mass ~2, stiffness ~15-30) feel sluggish now. +-- Speed on spring animations is largely ignored; stiffness/mass/dampening set pace. +hl.curve("spring_fast", { type = "spring", mass = 1, stiffness = 280, dampening = 26 }) +hl.curve("spring_slow", { type = "spring", mass = 1, stiffness = 160, dampening = 24 }) -- Window animations hl.animation({ leaf = "windows", enabled = true, speed = 1, spring = "spring_fast" }) -- cgit v1.2.3