refactor(hosts): never load example.lua; make it a pure template
hyprland.lua now just uses its defaults when no hosts/<hostname>.lua matches, instead of requiring hosts/example.lua. example.lua is kept only as a documented template for contributors.
This commit is contained in:
parent
70807f473a
commit
6365e1d122
2 changed files with 10 additions and 6 deletions
|
|
@ -1,7 +1,10 @@
|
|||
-- example.lua - no-op host fallback (mirrors example.conf)
|
||||
-- example.lua — TEMPLATE for a per-host config file (NOT loaded at runtime).
|
||||
--
|
||||
-- Used by hyprland.lua when the machine's hostname does not match any
|
||||
-- hosts/<hostname>.lua file. Keep this file empty (or add shared defaults).
|
||||
-- Create a file named after your host, e.g. hosts/MyHost.lua, to override
|
||||
-- host-specific settings.
|
||||
-- Hyprland's Lua config only loads hosts/<hostname>.lua matching the current
|
||||
-- machine's hostname. If none matches, hyprland.lua simply uses its defaults.
|
||||
-- This file is never required; it exists purely as a documented template.
|
||||
--
|
||||
-- To add your own machine, copy this to hosts/<your-hostname>.lua and fill it
|
||||
-- in. The hostname lookup strips any domain suffix (e.g. "laptop.home" -> "laptop").
|
||||
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue