forked from Shinonome/dots-hyprland
hl: make custom stuff optional
This commit is contained in:
@@ -1,26 +1,40 @@
|
||||
-- This file sources other files in `hyprland` and `custom` folders
|
||||
-- You wanna add your stuff in files in `custom`
|
||||
|
||||
-- Internal stuff --
|
||||
require("hyprland.lib")
|
||||
require("hyprland.services")
|
||||
|
||||
-- Environment variables --
|
||||
require("hyprland/env")
|
||||
require("custom/env")
|
||||
require("hyprland.env")
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/env.lua") then
|
||||
require("custom.env")
|
||||
end
|
||||
|
||||
-- Defaults --
|
||||
require("hyprland/execs")
|
||||
require("hyprland/general")
|
||||
require("hyprland/rules")
|
||||
require("hyprland/colors")
|
||||
require("hyprland/keybinds")
|
||||
-- Default configurations --
|
||||
require("hyprland.execs")
|
||||
require("hyprland.general")
|
||||
require("hyprland.rules")
|
||||
require("hyprland.colors")
|
||||
require("hyprland.keybinds")
|
||||
|
||||
-- Custom --
|
||||
require("custom/execs")
|
||||
require("custom/general")
|
||||
require("custom/rules")
|
||||
require("custom/keybinds")
|
||||
-- Custom configurations --
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/execs.lua") then
|
||||
require("custom.execs")
|
||||
end
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/general.lua") then
|
||||
require("custom.general")
|
||||
end
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/rules.lua") then
|
||||
require("custom.rules")
|
||||
end
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/keybinds.lua") then
|
||||
require("custom.keybinds")
|
||||
end
|
||||
|
||||
-- nwg-displays support: re-add the files if it updates later
|
||||
-- require("workspaces")
|
||||
-- require("monitors")
|
||||
|
||||
-- Shell overrides --
|
||||
require("hyprland/shellOverrides/main")
|
||||
require("hyprland.shellOverrides.main")
|
||||
|
||||
Reference in New Issue
Block a user