summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--func/xdgautostart.lua4
-rw-r--r--rc.lua5
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
diff --git a/rc.lua b/rc.lua
index a8eede2..aae82b6 100644
--- a/rc.lua
+++ b/rc.lua
@@ -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