move to example files for custom config

This commit is contained in:
2026-10-14 17:40:01 +02:00
parent 30ee4caad9
commit d825277ed5
17 changed files with 99 additions and 31 deletions
+18 -7
View File
@@ -5,8 +5,19 @@
-- Do not edit files in `hyprland/` (shared defaults across all
-- users). Put any changes in the matching file under `custom/`,
-- which is loaded after and overrides the defaults.
--
-- `custom/*.lua` files are machine-specific and ignored by git.
-- Create one by copying its template: cp custom/X.example custom/X.lua
-- Missing custom files are simply skipped.
-- ##############################################################
-- Load a module only if its file exists (errors inside it still surface).
local function optional(module)
if package.searchpath(module, package.path) then
require(module)
end
end
-- Defaults (do not edit) --
require("hyprland/monitors")
require("hyprland/environments")
@@ -18,13 +29,13 @@ require("hyprland/keybinds")
require("hyprland/windowrules")
-- Custom --
require("custom/autostart")
require("custom/monitors")
require("custom/environments")
require("custom/inputs")
require("custom/keybinds")
require("custom/windowrules")
require("custom/workspacerules")
optional("custom/autostart")
optional("custom/monitors")
optional("custom/environments")
optional("custom/inputs")
optional("custom/keybinds")
optional("custom/windowrules")
optional("custom/workspacerules")
-- For Noctalia Color templates
require("noctalia").apply_theme()