Swap defaults to lua

This commit is contained in:
Ryan Hughes
2026-05-11 10:39:22 -04:00
parent b93650991f
commit c7b6a7f8c4
72 changed files with 642 additions and 744 deletions
+12
View File
@@ -0,0 +1,12 @@
-- Shared path constants for Omarchy's Hyprland Lua modules.
-- Lua files loaded with require() have separate local scopes, so modules that
-- need these paths import this table instead of repeating os.getenv() lookups.
local home = os.getenv("HOME") or ""
return {
home = home,
config_home = os.getenv("XDG_CONFIG_HOME") or (home .. "/.config"),
state_home = os.getenv("XDG_STATE_HOME") or (home .. "/.local/state"),
omarchy_path = os.getenv("OMARCHY_PATH") or (home .. "/.local/share/omarchy"),
}