Загрузка данных


relight@archlinux ~> sed -n '1,45p' ~/.config/hypr/hyprland.lua
-- Hyprland loads this file when it is started without a config, and it prefers
-- it over hyprland.conf. HyDE loads it too, last, as the override layer below.
-- The block keeps the two apart: hyde.lua sets `hyde` on its first line, so it
-- runs only when this file is the entry point and HyDE has not been loaded.
-- Removing it leaves a session with a cursor and nothing else.
if not hyde then
	local share = os.getenv("XDG_DATA_HOME") or (os.getenv("HOME") .. "/.local/share")
	local entry = share .. "/hypr/hyde.lua"
	local handle = io.open(entry, "r")
	if not handle then
		error("HyDE is not installed at " .. entry .. ". Run install.sh -r, or point Hyprland at your own config.")
	end
	handle:close()
	dofile(entry)
end


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- AUTOGENERATED HYPRLAND CONFIG.                        --
-- EDIT THIS CONFIG ACCORDING TO THE WIKI INSTRUCTIONS.  --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

relight@archlinux ~> ls -l ~/.local/share/hypr/hyde.lua
-rwxr-xr-x 1 relight relight 4023 Oct 26 17:28 /home/relight/.local/share/hypr/hyde.lua*
relight@archlinux ~> sed -n '1,80p' ~/.local/share/hypr/hyde.lua
--!      ░▒▒▒░░░▓▓           ___________
--!    ░░▒▒▒░░░░░▓▓        //___________/
--!   ░░▒▒▒░░░░░▓▓     _   _ _    _ _____
--!   ░░▒▒░░░░░▓▓▓▓▓▓ | | | | |  | |  __/
--!    ░▒▒░░░░▓▓   ▓▓ | |_| | |_/ /| |___
--!     ░▒▒░░▓▓   ▓▓   \__  |____/ |____/
--!       ░▒▓▓   ▓▓  //____/

-- // ██████╗░░█████╗░  ███╗░░██╗░█████╗░████████╗  ███████╗██████╗░██╗████████╗
-- // ██╔══██╗██╔══██╗  ████╗░██║██╔══██╗╚══██╔══╝  ██╔════╝██╔══██╗██║╚══██╔══╝
-- // ██║░░██║██║░░██║  ██╔██╗██║██║░░██║░░░██║░░░  █████╗░░██║░░██║██║░░░██║░░░
-- // ██║░░██║██║░░██║  ██║╚████║██║░░██║░░░██║░░░  ██╔══╝░░██║░░██║██║░░░██║░░░
-- // ██████╔╝╚█████╔╝  ██║░╚███║╚█████╔╝░░░██║░░░  ███████╗██████╔╝██║░░░██║░░░
-- // ╚═════╝░░╚════╝░  ╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░  ╚══════╝╚═════╝░╚═╝░░░╚═╝░░░

-- require() resolves against the directory of the config Hyprland was started
-- with, which since v26.8.1 is the user's hyprland.lua, not this file. The
-- resolver is therefore loaded by its own path; everything below loads by name
-- from the search path it sets.
local root = assert(debug.getinfo(1, "S").source:match("^@(.*)/"), "not loaded from a file")

---@module "hyde"
hyde = hyde or {}
---@diagnostic disable-next-line: inject-field
hyde.path = dofile(root .. "/lua/hyde/path.lua")
package.loaded["hyde.path"] = hyde.path

local pkg_paths = {
	hyde.path.state .. "/hyde/?.lua", -- Lua state
	hyde.path.lib .. "/hyde/?.lua", -- lib scripts
	hyde.path.lib .. "/hyde/luautils/?.lua", -- lib scripts
	hyde.path.share .. "/hypr/lua/?.lua",
	hyde.path.state .. "/hyde/lua_env/share/lua/5.5/?.lua", -- virtual env for lua
	hyde.path.state .. "/hyde/lua_env/share/lua/5.5/?/init.lua", -- virtual env for lua
	hyde.path.config .. "/hypr/?.lua", -- expose main users config
	root .. "/lua/?.lua" -- this file's own tree, whatever prefix it sits under
}

package.path = package.path .. ";" .. table.concat(pkg_paths, ";") .. ";"
package.cpath = package.cpath
	.. ";"
	.. hyde.path.state
	.. "/hyde/lua_env/lib/lua/5.5/?.so" -- virtual env shared objects

-- Let's call it early so we can use it in other files
local utils = require("hyde.utils")
require("hyde.env")
require("hyde.config")
require("hyde.binds")
require("hyde.dispatcher")
require("hyde.handlers")

local check_require = utils.check_require

-- * Variables
require("variables")
-- * Default values
require("defaults")
--* Window rules
require("window_rules")
--* Layer rules
require("layer_rules")
-- * Environment variable Setup
require("env")
-- * Binds
require("key_binds")
--* Dynamic Stuff example theming and variable handlings
require("dynamic")
-- * Event handlers for more DE like experience
require("events")
--* HyDE's startup overridable too!
require("start_up")
-- * Automatically load generated monitor configs (e.g., from nwg-displays)
check_require("monitors")
-- --* user now can have this file
check_require("hyprland")
-- --* workflows configuration overrides everything
check_require("lua_state.workflows")
relight@archlinux ~> ls -la ~/.config/hypr
total 76
drwxr-xr-x  4 relight relight  4096 Oct 26 18:47 ./
drwxr-xr-x 26 relight relight  4096 Oct 26 18:45 ../
-rw-r--r--  1 relight relight  3211 Oct 26 17:28 hypridle.conf
-rw-r--r--  1 relight relight 13379 Oct 30 19:42 hyprland.lua
-rw-------  1 relight relight 13380 Oct 26 18:47 hyprland.lua.save
drwxr-xr-x  2 relight relight  4096 Oct 26 18:34 hyprlock/
-rw-r--r--  1 relight relight 12343 Oct 26 17:52 hyprlock.conf
-rw-r--r--  1 relight relight   402 Oct 26 17:28 hyprsunset.conf
-rw-r--r--  1 relight relight   197 Oct 26 18:08 monitors.lua
drwxr-xr-x  2 relight relight  4096 Oct 26 17:35 shaders/
-rw-r--r--  1 relight relight     0 Oct 26 18:07 workspaces.conf
relight@archlinux ~>