mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
13 lines
509 B
Lua
13 lines
509 B
Lua
-- 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"),
|
|
}
|