Created
July 28, 2009 18:02
-
-
Save jolts/157564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
-- @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