hypr fix setup issues
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user