chore: fixes brightness reapplying + noctalia on startup

This commit is contained in:
2026-09-18 03:40:24 +02:00
parent b651711100
commit 89e906fdd6
2 changed files with 48 additions and 46 deletions
+10 -8
View File
@@ -1,5 +1,6 @@
hl.on("hyprland.start", function() 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("nm-applet")
hl.exec_cmd("blueman-applet") hl.exec_cmd("blueman-applet")
hl.exec_cmd("fcitx5") hl.exec_cmd("fcitx5")
@@ -10,10 +11,11 @@ hl.on("hyprland.start", function()
hl.exec_cmd("nextcloud --background") hl.exec_cmd("nextcloud --background")
end) end)
local time = tonumber(os.date("%H")) hl.on("hyprland.start", function()
local time = tonumber(os.date("%H"))
if time < 22 and time > 8 then if time < 22 and time > 8 then
hl.exec_cmd("brightnessctl s 100%") hl.exec_cmd("brightnessctl s 100%")
else else
hl.exec_cmd("brightnessctl s 5%") hl.exec_cmd("brightnessctl s 5%")
end end
end)
+38 -38
View File
@@ -9,46 +9,46 @@ local error = "rgb(f38ba8)"
local on_error = "rgb(1e1e2e)" local on_error = "rgb(1e1e2e)"
local function apply_theme() local function apply_theme()
hl.config({ hl.config({
general = { general = {
col = { col = {
active_border = primary, active_border = primary,
inactive_border = surface, inactive_border = surface,
}, },
}, },
group = { group = {
col = { col = {
border_active = secondary, border_active = secondary,
border_inactive = surface, border_inactive = surface,
border_locked_active = error, border_locked_active = error,
border_locked_inactive = surface, border_locked_inactive = surface,
}, },
groupbar = { groupbar = {
col = { col = {
active = secondary, active = secondary,
inactive = surface, inactive = surface,
locked_active = error, locked_active = error,
locked_inactive = surface, locked_inactive = surface,
}, },
text_color = on_secondary, text_color = on_secondary,
text_color_inactive = on_surface, text_color_inactive = on_surface,
text_color_locked_active = on_error, text_color_locked_active = on_error,
text_color_locked_inactive = on_surface, text_color_locked_inactive = on_surface,
}, },
}, },
}) })
end end
return { return {
colors = { colors = {
primary = primary, primary = primary,
surface = surface, surface = surface,
on_surface = on_surface, on_surface = on_surface,
secondary = secondary, secondary = secondary,
on_secondary = on_secondary, on_secondary = on_secondary,
error = error, error = error,
on_error = on_error, on_error = on_error,
}, },
apply_theme = apply_theme, apply_theme = apply_theme
} }