noctalia depend on env variable

This commit is contained in:
2026-09-25 11:47:31 +02:00
parent 050efc2b71
commit 6cd9427b40
3 changed files with 54 additions and 17 deletions
+4 -6
View File
@@ -28,15 +28,13 @@ hl.config({
-- ## MY PROGRAMS ###
-- ##################
hl.on("hyprland.start", function()
hl.exec_cmd("noctalia &")
end)
local env = require("env")
hl.on("hyprland.start", function()
if env.shell == "noctalia" then
hl.exec_cmd("noctalia &")
end
hl.exec_cmd("hypridle &")
end)
hl.on("hyprland.start", function()
hl.exec_cmd("sh ~/.config/hypr/scripts/portal-host-override.sh")
hl.exec_cmd("sh ~/.config/hypr/scripts/ensure-mime-defaults.sh")
end)