summaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
blob: 5bf50ce82af62c399558f308100a9e658906e723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();