refactor code structure

This commit is contained in:
2026-08-12 23:15:12 -07:00
parent fef03be5f6
commit bfe5419bb9
17 changed files with 505 additions and 562 deletions
+26
View File
@@ -0,0 +1,26 @@
-- Build the startup list once, using the same program names and UWSM wrapper as
-- the keybinding module.
local commands = require("lib.commands")
local settings = require("config.settings")
local startup_commands = {
-- Session services that manage their own lifecycle.
"fcitx5 -d",
"hyprpm reload -n",
-- Graphical/session applications launched inside UWSM scopes.
commands.uwsm(settings.programs.terminal),
commands.uwsm("hyprpaper"),
commands.uwsm("firefox"),
commands.uwsm("wl-paste --type text --watch cliphist store"),
commands.uwsm("wl-paste --type image --watch cliphist store"),
commands.uwsm("noctalia"),
}
-- This event only fires when Hyprland starts; reloading the config will not
-- launch duplicate copies of these applications.
hl.on("hyprland.start", function()
for _, command in ipairs(startup_commands) do
hl.exec_cmd(command)
end
end)