-- {{{ 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 } -- }}}