aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--config/hypr/animations/Spring-curves.conf4
-rw-r--r--config/hypr/animations/Spring-curves.lua7
3 files changed, 10 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d57ea5db..fe78c6ca 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@
## Fixed:
+- Fixed `Spring-Curves.lua`
+ - Hyprland v0.56+ changed springs timing
- Fixed `RainbowBorders` script to work with LUA config
- Fixed lua migrate script to force uppercase `SHIFT`
- LUA API doesn't allow `shift`
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" })
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage