dotfiles/config/awesome/custom/applications.lua

52 lines
825 B
Lua
Raw Normal View History

2023-03-16 05:12:44 -04:00
-- {{{ Modules
local awful = require("awful")
-- }}}
-- {{{ Variables
-- Applications that will be started
local start_applications = {
"picom",
"flameshot",
"nm-applet",
"lxpolkit",
"unclutter",
"radiotray-ng",
"keepassxc"
}
-- Applications that will be killed on exit/restart
local kill_applications = {
"keepassxc"
}
-- }}}
-- {{{ Functions
local function kill_apps()
for _, cmd in ipairs(kill_applications) do
awful.spawn("pkill " .. cmd)
end
end
local function restart()
kill_apps()
awesome.restart()
end
local function quit()
kill_apps()
awesome.quit()
end
-- }}}
--- {{{ Script
for _, cmd in ipairs(start_applications) do
awful.spawn.single_instance(cmd)
end
return {
kill_apps = kill_apps,
restart = restart,
quit = quit
}
-- }}}