diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/awesome/rc.lua | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 1a7c4fd..4d07024 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -46,22 +46,9 @@ 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") -run_once("redshift -l 51.50:4.59 -t 6500:2500") --- }}} +-- Start the desktop.target to autostart applications through systemd +awful.util.spawn_with_shell("systemctl --user start desktop.target") +awful.util.spawn_with_shell("systemctl --user start desktop-x11.target") -- {{{ Variable definitions beautiful.init(awful.util.getdir("config") .. "/theme.lua") |