diff options
Diffstat (limited to 'config/hypr')
| -rw-r--r-- | config/hypr/animations/Spring-curves.conf | 4 | ||||
| -rw-r--r-- | config/hypr/animations/Spring-curves.lua | 7 |
2 files changed, 8 insertions, 3 deletions
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" }) |
