move to example files for custom config
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user