feat(hypr): (almost) complete lua rewrite of configs

This commit is contained in:
2026-06-14 07:25:42 +02:00
parent 6e35326906
commit 37cf063eb1
11 changed files with 229 additions and 30 deletions
+65 -21
View File
@@ -1,26 +1,70 @@
hl.config({
decoration = {
inactive_opacity = 1,
rounding = 10,
decoration = {
inactive_opacity = 1,
rounding = 10,
shadow = {
enabled = true,
range = 4,
},
shadow = {
enabled = true,
range = 4,
},
blur = {
enabled = true,
xray = true,
new_optimizations = true,
size = 1,
passes = 2,
},
blur = {
enabled = true,
xray = true,
new_optimizations = true,
size = 1,
passes = 2,
},
dim_inactive = true,
dim_strength = 0.1,
-- TODO: Consider adding glow?
},
animations = {
enabled = true,
},
dim_inactive = true,
dim_strength = 0.1,
-- TODO: Consider adding glow?
},
animations = {
enabled = true,
},
})
hl.curve("main-bezier", {
type = "bezier",
points = { { 0.05, 0.9 }, { 0.1, 1.05 } },
})
hl.animation({
leaf = "windowsIn",
enabled = true,
bezier = "main-bezier",
speed = 3,
})
hl.animation({
leaf = "windowsOut",
enabled = true,
bezier = "main-bezier",
speed = 4,
style = "popin 80%"
})
hl.animation({
leaf = "border",
enabled = true,
speed = 8,
})
hl.animation({
leaf = "fade",
enabled = true,
speed = 3,
})
hl.animation({
leaf = "workspace",
enabled = true,
speed = 1,
})
hl.animation({
leaf = "specialWorkspace",
enabled = true,
speed = 1,
})