From a6d495f1591c77bf5ff9ff6bd775681a7d1caef1 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 5 May 2023 21:34:16 +0200 Subject: Add startup applications to awesome --- .config/awesome/rc.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.config/awesome/rc.lua') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index c67725b..eaac212 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -43,6 +43,22 @@ do end -- }}} +-- {{{ Background services +function run_once(cmd) + findme = cmd + firstspace = cmd:find(" ") + + if firstspace then + findme = cmd:sub(0, firstspace - 1) + end + + awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")") +end + +run_once("xcompmgr") +run_once("chwp") +-- }}} + -- {{{ Variable definitions beautiful.init(awful.util.getdir("config") .. "/theme.lua") @@ -462,6 +478,7 @@ awful.rules.rules = { rule_any = { class = { "thunderbird", + "kmail", }, }, properties = { -- cgit v1.1