aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/animations/Spring-curves.lua
blob: 81701119a0b89609a853e1f6747960dcc957f309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- Spring Curves
-- 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" })
hl.animation({ leaf = "windowsIn", enabled = true, speed = 1, spring = "spring_fast", style = "popin 50%" })
hl.animation({ leaf = "windowsOut", enabled = true, speed = 1, spring = "spring_fast", style = "popin" })

-- Border animations
hl.animation({ leaf = "border", enabled = true, speed = 1, spring = "spring_slow" })
hl.animation({ leaf = "borderangle", enabled = false })

-- Fade
hl.animation({ leaf = "fade", enabled = true, speed = 1, spring = "spring_slow" })

-- Zoom cursor
hl.animation({ leaf = "zoomFactor", enabled = true, speed = 6, spring = "spring_fast" })

-- Layer animations
hl.animation({ leaf = "layersIn", enabled = true, speed = 3, spring = "spring_fast", style = "slide" })
hl.animation({ leaf = "layersOut", enabled = true, speed = 1.6, spring = "spring_fast", style = "slide" })
hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 2, spring = "spring_fast" })
hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.6, spring = "spring_fast" })

-- Workspace animations
hl.animation({ leaf = "workspaces", enabled = true, speed = 1, spring = "spring_slow", style = "slide" })
hl.animation({ leaf = "specialWorkspace", enabled = true, speed = 1, spring = "spring_slow", style = "slidevert 80%" })
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage