diff --git a/dotfiles/config/hypr/hyprland/settings.lua b/dotfiles/config/hypr/hyprland/settings.lua index 678784c2..71adef42 100644 --- a/dotfiles/config/hypr/hyprland/settings.lua +++ b/dotfiles/config/hypr/hyprland/settings.lua @@ -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" }, diff --git a/nixos/flake.lock b/nixos/flake.lock index fa986c81..eff5e6b1 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -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": { diff --git a/nixos/hyprland.nix b/nixos/hyprland.nix index 31657805..43c52647 100644 --- a/nixos/hyprland.nix +++ b/nixos/hyprland.nix @@ -324,6 +324,7 @@ hyprRofiWindow hyprShellUi jq + lua5_4 # lua/luac for validating Hyprland Lua config ] ++ hyprlandPluginPackages; };