hypr fix setup issues

This commit is contained in:
2026-09-25 14:26:30 +02:00
parent 8ec820976f
commit 77f70e318c
12 changed files with 258 additions and 45 deletions
+11 -6
View File
@@ -1,5 +1,9 @@
require("env")
local env = require("env")
if env.shell ~= "noctalia" and env.shell ~= "caelestia" then
error("Unsupported shell '" .. tostring(env.shell) .. "' in ~/.config/hypr/env.lua; choose 'noctalia' or 'caelestia'")
end
hl.exec_cmd("bash ~/.config/hypr/env.sh")
-- ###############
@@ -28,13 +32,11 @@ hl.config({
-- ## MY PROGRAMS ###
-- ##################
local env = require("env")
hl.on("hyprland.start", function()
if env.shell == "noctalia" then
hl.exec_cmd("noctalia &")
elseif env.shell == "caelestia" then
if env.shell == "caelestia" then
hl.exec_cmd("caelestia shell -d")
else -- env.shell == "noctalia"
hl.exec_cmd("noctalia &")
end
hl.exec_cmd("hypridle &")
hl.exec_cmd("sh ~/.config/hypr/scripts/portal-host-override.sh")
@@ -49,3 +51,6 @@ require("modules.windows_and_workspaces")
-- HyprMod managed settings
require("hyprland-gui")
-- For Noctalia Color templates
require("noctalia").apply_theme()