Extract Omarchy's own bootstrap
This commit is contained in:
@@ -1,33 +1,14 @@
|
|||||||
-- Learn how to configure Hyprland: https://wiki.hypr.land/Configuring/Start/
|
-- Learn how to configure Hyprland: https://wiki.hypr.land/Configuring/Start/
|
||||||
|
|
||||||
local home = os.getenv("HOME") or ""
|
-- Load user modules from ~/.config and Omarchy defaults from $OMARCHY_PATH.
|
||||||
|
package.path = os.getenv("HOME")
|
||||||
|
.. "/.config/?.lua;"
|
||||||
|
.. (os.getenv("OMARCHY_PATH") or (os.getenv("HOME") .. "/.local/share/omarchy"))
|
||||||
|
.. "/?.lua;"
|
||||||
|
.. package.path
|
||||||
|
|
||||||
-- Hyprland recommends require() for split Lua configs. These two roots let us
|
-- All Omarchy default setups
|
||||||
-- load user modules from ~/.config and Omarchy defaults from $OMARCHY_PATH.
|
require("default.hypr.omarchy")
|
||||||
package.path = home .. "/.config/?.lua;" .. (os.getenv("OMARCHY_PATH") or (home .. "/.local/share/omarchy")) .. "/?.lua;" .. package.path
|
|
||||||
|
|
||||||
local paths = require("default.hypr.paths")
|
|
||||||
require("default.hypr.helpers")
|
|
||||||
|
|
||||||
-- Use Omarchy defaults, but don't edit these directly.
|
|
||||||
require("default.hypr.autostart")
|
|
||||||
require("default.hypr.bindings.media")
|
|
||||||
require("default.hypr.bindings.clipboard")
|
|
||||||
require("default.hypr.bindings.tiling-v2")
|
|
||||||
require("default.hypr.bindings.utilities")
|
|
||||||
require("default.hypr.envs")
|
|
||||||
require("default.hypr.looknfeel")
|
|
||||||
require("default.hypr.input")
|
|
||||||
require("default.hypr.windows")
|
|
||||||
|
|
||||||
-- Current theme overrides.
|
|
||||||
do
|
|
||||||
local theme = io.open(paths.config_home .. "/omarchy/current/theme/hyprland.lua", "r")
|
|
||||||
if theme then
|
|
||||||
theme:close()
|
|
||||||
require("omarchy.current.theme.hyprland")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Change your own setup in these files and override defaults.
|
-- Change your own setup in these files and override defaults.
|
||||||
require("hypr.monitors")
|
require("hypr.monitors")
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
-- Omarchy Hyprland setup: helpers, defaults, and current theme overrides.
|
||||||
|
|
||||||
|
require("default.hypr.helpers")
|
||||||
|
|
||||||
|
-- Use Omarchy defaults, but don't edit these directly.
|
||||||
|
require("default.hypr.autostart")
|
||||||
|
require("default.hypr.bindings.media")
|
||||||
|
require("default.hypr.bindings.clipboard")
|
||||||
|
require("default.hypr.bindings.tiling-v2")
|
||||||
|
require("default.hypr.bindings.utilities")
|
||||||
|
require("default.hypr.envs")
|
||||||
|
require("default.hypr.looknfeel")
|
||||||
|
require("default.hypr.input")
|
||||||
|
require("default.hypr.windows")
|
||||||
|
|
||||||
|
-- Current theme overrides.
|
||||||
|
do
|
||||||
|
local paths = require("default.hypr.paths")
|
||||||
|
local theme = io.open(paths.config_home .. "/omarchy/current/theme/hyprland.lua", "r")
|
||||||
|
if theme then
|
||||||
|
theme:close()
|
||||||
|
require("omarchy.current.theme.hyprland")
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user