Skip to content

Instantly share code, notes, and snippets.

@jolts
Created July 28, 2009 18:02
Show Gist options
  • Save jolts/157564 to your computer and use it in GitHub Desktop.
Save jolts/157564 to your computer and use it in GitHub Desktop.
-------------------------------------------------------------------------------
-- @file rc.lua
-- @author Matthew Wild <mwild1@gmail.com>
-------------------------------------------------------------------------------
local rc, err = loadfile(os.getenv("HOME").."/.config/awesome/awesomerc.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
local f = io.open(os.getenv("HOME").."/.awesome.err", "w+")
f:write("Awesome crashed during startup on ", os.date("%B %d, %H:%M:\n\n"))
f:write(err, "\n");
f:close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment