35 lines
2.2 KiB
Lua
35 lines
2.2 KiB
Lua
-- HyprFlux — https://github.com/ahmad9059/HyprFlux
|
|
-- Ported from UserConfigs/UserAnimations.conf (the active preset)
|
|
--
|
|
-- The 14 alternative presets from animations/*.conf were also ported, flat, as
|
|
-- anim-*.lua (see the plan) — none of them are wired in. They now live in ../presets/.
|
|
-- To switch styles, replace the body of this file with `require("presets.anim-<preset>")`,
|
|
-- e.g. require("presets.anim-ml4w-classic").
|
|
|
|
hl.config({
|
|
animations = {
|
|
enabled = true,
|
|
},
|
|
})
|
|
|
|
hl.curve("wind", { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1.05 } } })
|
|
hl.curve("winIn", { type = "bezier", points = { { 0.1, 1.1 }, { 0.1, 1.1 } } })
|
|
hl.curve("winOut", { type = "bezier", points = { { 0.3, -0.3 }, { 0, 1 } } })
|
|
hl.curve("liner", { type = "bezier", points = { { 1, 1 }, { 1, 1 } } })
|
|
hl.curve("overshot", { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1.05 } } })
|
|
hl.curve("smoothOut", { type = "bezier", points = { { 0.5, 0 }, { 0.99, 0.99 } } })
|
|
hl.curve("smoothIn", { type = "bezier", points = { { 0.5, -0.5 }, { 0.68, 1.5 } } })
|
|
|
|
hl.animation({ leaf = "windows", enabled = true, speed = 6, bezier = "wind", style = "slide" })
|
|
hl.animation({ leaf = "windowsIn", enabled = true, speed = 5, bezier = "winIn", style = "slide" })
|
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 3, bezier = "smoothOut", style = "slide" })
|
|
hl.animation({ leaf = "windowsMove", enabled = true, speed = 5, bezier = "wind", style = "slide" })
|
|
hl.animation({ leaf = "border", enabled = true, speed = 1, bezier = "liner" })
|
|
hl.animation({ leaf = "borderangle", enabled = true, speed = 100, bezier = "liner", style = "loop" }) -- used by rainbow borders and rotating colors; speed clamped from 180 -> Lua hl.animation caps speed at 100
|
|
hl.animation({ leaf = "fade", enabled = true, speed = 3, bezier = "smoothOut" })
|
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "overshot" })
|
|
|
|
-- animations for -git or version >0.42.0
|
|
hl.animation({ leaf = "workspacesIn", enabled = true, speed = 5, bezier = "winIn", style = "slide" })
|
|
hl.animation({ leaf = "workspacesOut", enabled = true, speed = 5, bezier = "winOut", style = "slide" })
|