summaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
new file mode 100644
index 0000000..5bf50ce
--- /dev/null
+++ b/.config/awesome/rc.lua
@@ -0,0 +1,22 @@
+local rc, err = loadfile(os.getenv("HOME").."/.config/awesome/awesome.lua");
+if rc then
+ rc, err = pcall(rc);
+ if rc then
+ return;
+ end
+end
+
+dofile("/etc/xdg/awesome/rc.lua");
+
+for s = 1,screen.count() do
+ mypromptbox[s].text = awful.util.escape(err:match("[^\n]*"));
+end
+
+naughty.notify{text="Awesome crashed during startup on " ..
+ os.date("%d%/%m/%Y %T:\n\n")
+ .. err .. "\n", timeout = 0}
+
+local f = io.open(os.getenv("HOME").."/tmp/awesome.error", "w+")
+f:write("Awesome crashed during startup on ", os.date("%d%/%m/%Y %T:\n\n"))
+f:write(err, "\n");
+f:close();