Transfer from legacy to lua
This commit is contained in:
+123
@@ -12,3 +12,126 @@ hl.on("hyprland.start", function()
|
||||
background.start()
|
||||
status_bar.start()
|
||||
end)
|
||||
|
||||
-- Hyprlegacy code
|
||||
-- ~/.config/hypr/hyprland.lua
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 3,
|
||||
gaps_out = 10,
|
||||
border_size = 2,
|
||||
|
||||
col = {
|
||||
active_border = {
|
||||
colors = {
|
||||
"rgba(33ccffee)",
|
||||
"rgba(00ff99ee)",
|
||||
},
|
||||
angle = 45,
|
||||
},
|
||||
|
||||
inactive_border = "rgba(595959aa)",
|
||||
},
|
||||
|
||||
layout = "dwindle",
|
||||
},
|
||||
|
||||
decoration = {
|
||||
rounding = 10,
|
||||
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 1,
|
||||
},
|
||||
},
|
||||
|
||||
animations = {
|
||||
enabled = true,
|
||||
},
|
||||
|
||||
dwindle = {
|
||||
-- Empty for no reason
|
||||
},
|
||||
|
||||
master = {
|
||||
-- Empty for no reason
|
||||
},
|
||||
|
||||
group = {
|
||||
focus_removed_window = true,
|
||||
|
||||
groupbar = {
|
||||
font_family = "SpaceMono Nerd Font Mono",
|
||||
},
|
||||
},
|
||||
|
||||
binds = {
|
||||
pass_mouse_when_bound = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- Hyprlang:
|
||||
-- bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
--
|
||||
-- Lua:
|
||||
hl.curve("myBezier", {
|
||||
type = "bezier",
|
||||
points = {
|
||||
{ 0.05, 0.9 },
|
||||
{ 0.1, 1.05 },
|
||||
},
|
||||
})
|
||||
|
||||
-- Hyprlang:
|
||||
-- animation = windows, 1, 7, myBezier
|
||||
-- animation = windowsOut, 1, 7, default, popin 80%
|
||||
-- animation = border, 1, 10, default
|
||||
-- animation = borderangle, 1, 8, default
|
||||
-- animation = fade, 1, 7, default
|
||||
-- animation = workspaces, 1, 6, default
|
||||
--
|
||||
-- Lua:
|
||||
hl.animation({
|
||||
leaf = "windows",
|
||||
enabled = true,
|
||||
speed = 7,
|
||||
bezier = "myBezier",
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "windowsOut",
|
||||
enabled = true,
|
||||
speed = 7,
|
||||
bezier = "default",
|
||||
style = "popin 80%",
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "border",
|
||||
enabled = true,
|
||||
speed = 10,
|
||||
bezier = "default",
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "borderangle",
|
||||
enabled = true,
|
||||
speed = 8,
|
||||
bezier = "default",
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "fade",
|
||||
enabled = true,
|
||||
speed = 7,
|
||||
bezier = "default",
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "workspaces",
|
||||
enabled = true,
|
||||
speed = 6,
|
||||
bezier = "default",
|
||||
})
|
||||
|
||||
@@ -3,5 +3,6 @@ return {
|
||||
hl.exec_cmd("waybar")
|
||||
hl.exec_cmd("nm-applet --indicator")
|
||||
hl.exec_cmd("blueman-applet")
|
||||
hl.exec_cmd("lxpolkit")
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user