From 13a0b89b3d8ff6e6555849fa61440132115cda06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nina=20Chl=C3=B3e=20Kassandra=20Rei=C3=9F?= Date: Thu, 2 Jul 2026 17:09:57 +0200 Subject: [PATCH] Transfer from legacy to lua --- hyprland.lua | 123 +++++++++++++++++++++++++++++++++++++++++++++++++ status_bar.lua | 1 + 2 files changed, 124 insertions(+) diff --git a/hyprland.lua b/hyprland.lua index c0ba3cc..3b2ddc7 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -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", +}) diff --git a/status_bar.lua b/status_bar.lua index d32a4de..357b316 100644 --- a/status_bar.lua +++ b/status_bar.lua @@ -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, }