55 lines
1.2 KiB
Lua
55 lines
1.2 KiB
Lua
|
|
require("env")
|
|
hl.exec_cmd("bash ~/.config/hypr/env.sh")
|
|
|
|
-- ###############
|
|
-- ## MONITORS ###
|
|
-- ###############
|
|
|
|
-- load default monitor config
|
|
require("modules.monitor_setup_default")
|
|
|
|
-- Only use monitor_setup if the file exists
|
|
local config_home = os.getenv("XDG_CONFIG_HOME") or os.getenv("HOME") .. "/.config"
|
|
local f = io.open(config_home .. "/hypr/monitor_setup.lua", "r")
|
|
if f then
|
|
f:close()
|
|
require("monitor_setup")
|
|
end
|
|
|
|
-- unscale XWayland
|
|
hl.config({
|
|
xwayland = {
|
|
force_zero_scaling = true,
|
|
},
|
|
})
|
|
|
|
-- ##################
|
|
-- ## MY PROGRAMS ###
|
|
-- ##################
|
|
|
|
hl.on("hyprland.start", function()
|
|
hl.exec_cmd("noctalia &")
|
|
end)
|
|
|
|
hl.on("hyprland.start", function()
|
|
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)
|
|
|
|
require("modules.environment_variables")
|
|
require("modules.look_and_feel")
|
|
require("modules.input")
|
|
require("modules.keybinds")
|
|
require("modules.windows_and_workspaces")
|
|
|
|
-- HyprMod managed settings
|
|
require("hyprland-gui")
|
|
|
|
-- For Noctalia Color templates
|
|
require("noctalia").apply_theme()
|