diff options
| -rw-r--r-- | func/xdgautostart.lua | 4 | ||||
| -rw-r--r-- | rc.lua | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/func/xdgautostart.lua b/func/xdgautostart.lua index 1bee0e8..5c5b0a1 100644 --- a/func/xdgautostart.lua +++ b/func/xdgautostart.lua @@ -1,3 +1,5 @@ local awful = require("awful") -awful.spawn("dex --environment Awesome --autostart") +if startup then + awful.spawn("dex --environment Awesome --autostart") +end @@ -10,6 +10,11 @@ uname:close() osname = uname_i() hostname = uname_i() +-- set startup flag to block processes on reload +awesome.register_xproperty("awesome_session_started", "boolean") +startup = not awesome.get_xproperty("awesome_session_started") +awesome.set_xproperty("awesome_session_started", true) + -- import modules require("theme") -- load first require("layouts") -- load before bar |
