Files
hyprland-dotfiles/config/autostart.lua
T
2026-08-17 00:03:23 -07:00

30 lines
1.1 KiB
Lua

-- 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 = {
-- Local native layouts must register before a workspace can select them.
"hyprctl plugin load /home/felis/source/hyprstage/build/hyprstage.so",
-- 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("firefox"),
commands.uwsm("wl-paste --type text --watch cliphist store"),
commands.uwsm("wl-paste --type image --watch cliphist store"),
commands.uwsm("noctalia"),
commands.uwsm("linux-wallpaper-engine")
}
-- 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)