From 89e906fdd6e285af3c6bbddd8cb6cbf9ae137473 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 7 Sep 2026 15:07:41 +0200 Subject: [PATCH] chore: fixes brightness reapplying + noctalia on startup --- modules/executes.lua | 18 ++++++----- noctalia.lua | 76 ++++++++++++++++++++++---------------------- 2 files changed, 48 insertions(+), 46 deletions(-) diff --git a/modules/executes.lua b/modules/executes.lua index 446fbe2..116a781 100644 --- a/modules/executes.lua +++ b/modules/executes.lua @@ -1,5 +1,6 @@ hl.on("hyprland.start", function() - hl.exec_cmd("zshell-cli shell start") + -- hl.exec_cmd("zshell-cli shell start") + hl.exec_cmd("noctalia") hl.exec_cmd("nm-applet") hl.exec_cmd("blueman-applet") hl.exec_cmd("fcitx5") @@ -10,10 +11,11 @@ hl.on("hyprland.start", function() hl.exec_cmd("nextcloud --background") end) -local time = tonumber(os.date("%H")) - -if time < 22 and time > 8 then - hl.exec_cmd("brightnessctl s 100%") -else - hl.exec_cmd("brightnessctl s 5%") -end +hl.on("hyprland.start", function() + local time = tonumber(os.date("%H")) + if time < 22 and time > 8 then + hl.exec_cmd("brightnessctl s 100%") + else + hl.exec_cmd("brightnessctl s 5%") + end +end) diff --git a/noctalia.lua b/noctalia.lua index 00eac01..30b94d0 100644 --- a/noctalia.lua +++ b/noctalia.lua @@ -9,46 +9,46 @@ local error = "rgb(f38ba8)" local on_error = "rgb(1e1e2e)" local function apply_theme() - hl.config({ - general = { - col = { - active_border = primary, - inactive_border = surface, - }, - }, - group = { - col = { - border_active = secondary, - border_inactive = surface, - border_locked_active = error, - border_locked_inactive = surface, - }, + hl.config({ + general = { + col = { + active_border = primary, + inactive_border = surface, + }, + }, + group = { + col = { + border_active = secondary, + border_inactive = surface, + border_locked_active = error, + border_locked_inactive = surface, + }, - groupbar = { - col = { - active = secondary, - inactive = surface, - locked_active = error, - locked_inactive = surface, - }, - text_color = on_secondary, - text_color_inactive = on_surface, - text_color_locked_active = on_error, - text_color_locked_inactive = on_surface, - }, - }, - }) + groupbar = { + col = { + active = secondary, + inactive = surface, + locked_active = error, + locked_inactive = surface, + }, + text_color = on_secondary, + text_color_inactive = on_surface, + text_color_locked_active = on_error, + text_color_locked_inactive = on_surface, + }, + }, + }) end return { - colors = { - primary = primary, - surface = surface, - on_surface = on_surface, - secondary = secondary, - on_secondary = on_secondary, - error = error, - on_error = on_error, - }, - apply_theme = apply_theme, + colors = { + primary = primary, + surface = surface, + on_surface = on_surface, + secondary = secondary, + on_secondary = on_secondary, + error = error, + on_error = on_error, + }, + apply_theme = apply_theme }