hyprland: retune spring animations
This commit is contained in:
@@ -173,8 +173,18 @@ function M.setup(ctx)
|
||||
hl.curve("smoothOut", { type = "bezier", points = { { 0.36, 1 }, { 0.3, 1 } } })
|
||||
hl.curve("smoothInOut", { type = "bezier", points = { { 0.42, 0 }, { 0.58, 1 } } })
|
||||
hl.curve("linear", { type = "bezier", points = { { 0, 0 }, { 1, 1 } } })
|
||||
hl.curve("workspaceSpring", { type = "spring", mass = 2.4, stiffness = 38, dampening = 8 })
|
||||
hl.curve("windowSpring", { type = "spring", mass = 2.5, stiffness = 40, dampening = 10 })
|
||||
local spring_time_scale = 5
|
||||
local function spring_curve(mass, stiffness, dampening)
|
||||
return {
|
||||
type = "spring",
|
||||
mass = mass,
|
||||
stiffness = stiffness * spring_time_scale * spring_time_scale,
|
||||
dampening = dampening * spring_time_scale,
|
||||
}
|
||||
end
|
||||
|
||||
hl.curve("workspaceSpring", spring_curve(2.4, 38, 8))
|
||||
hl.curve("windowSpring", spring_curve(2.5, 40, 10))
|
||||
|
||||
local animations = {
|
||||
{ leaf = "global", enabled = true, speed = 8, bezier = "default" },
|
||||
|
||||
6
nixos/flake.lock
generated
6
nixos/flake.lock
generated
@@ -1021,11 +1021,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778880019,
|
||||
"narHash": "sha256-F+WD0eVQoUFV6WtsFjPn9vsYzGwrCwjkrJAzEBPciM0=",
|
||||
"lastModified": 1779002277,
|
||||
"narHash": "sha256-oQDNfzO84RBHUbKDqz02pTNFr/B24JQz6GeK7/bdIUQ=",
|
||||
"owner": "colonelpanic8",
|
||||
"repo": "hyprutils",
|
||||
"rev": "8597dd96de4791e7c52d33b608c7191c7e8def03",
|
||||
"rev": "bb894701ee7b75033a30643d26bf5b9f288fad63",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -324,6 +324,7 @@
|
||||
hyprRofiWindow
|
||||
hyprShellUi
|
||||
jq
|
||||
lua5_4 # lua/luac for validating Hyprland Lua config
|
||||
]
|
||||
++ hyprlandPluginPackages;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user