Files
dotfiles/dotfiles/.config/hypr/hyprland.lua
2026-08-26 20:14:43 +01:00

43 lines
2.1 KiB
Lua

-- HyprFlux — https://github.com/ahmad9059/HyprFlux
-- Ported from hyprland.conf — see https://wiki.hyprland.org/
--
-- This mirrors the old source= chain 1:1, just as require()'d Lua modules instead
-- of hyprlang includes. See each file for its origin. The presets/ preset library
-- (anim-*.lua) is also ported but intentionally not required from here — only the
-- currently-active style (appearance/animations.lua) is wired in, exactly like before.
--
-- Modules live in subfolders sorted by concern (core/, appearance/, layout/, input/,
-- presets/) — require() paths below use dotted module names, which Lua resolves to
-- the matching subfolder (e.g. require("core.env") -> core/env.lua).
-- Initial boot script: applies initial wallpapers, theming, new settings etc.
-- suggest not changing/deleting this, including the reference file at ~/.config/hypr/.initial_startup_done
-- as long as that reference file is present, initial-boot.sh will not execute
hl.on("hyprland.start", function()
hl.exec_cmd(os.getenv("HOME") .. "/.config/hypr/initial-boot.sh")
end)
-- ## This is where you want to start tinkering
require("core.startup") -- put your start-up packages in core/startup.lua
require("core.env") -- Environment variables to load
require("layout.windowrules") -- all about Hyprland Window Rules and Layer Rules
require("appearance.decorations") -- Decorations config
require("appearance.animations") -- Animation config
require("input.keybinds") -- Put your own keybinds here
require("core.settings") -- Main Hyprland Settings
-- nwg-displays / hyprdynamicmonitors
require("layout.monitors")
require("layout.workspaces")
-- NOTE: the original hyprland.conf used a plain `exec` (not `exec-once`) here, so it
-- re-ran on every `hyprctl reload`, not just at startup. hl.on("hyprland.start", ...)
-- only fires once at actual compositor start — close enough for a one-shot gsettings
-- call, but worth knowing if you relied on the reload-time re-apply.
hl.on("hyprland.start", function()
hl.exec_cmd("gsettings set org.gnome.desktop.interface cursor-theme Future-black Cursors")
end)
-- HyprMod managed settings
require("core.hyprmod")