summaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-23 10:28:57 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-23 10:28:57 +0200
commit8e47ab2d5c32459a8071da3facc0d1f096261de5 (patch)
tree513e64301398f5135f64b9f0e91a9116fade4fd6 /.config/awesome/rc.lua
parent65989a0d67084252fc372816dcdca38d91eef283 (diff)
downloaddotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.tar.gz
dotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.tar.bz2
dotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.zip
awesome: Partially update to awesome 3.4.11
Not yet hooked up is the new startup-error handling.
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 5bf50ce..c58d101 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -1,3 +1,29 @@
+---- After require("naughty")
+---- {{{ Error handling
+---- Check if awesome encountered an error during startup and fell back to
+---- another config (This code will only ever execute for the fallback config)
+--if awesome.startup_errors then
+-- naughty.notify({ preset = naughty.config.presets.critical,
+-- title = "Oops, there were errors during startup!",
+-- text = awesome.startup_errors })
+--end
+--
+---- Handle runtime errors after startup
+--do
+-- local in_error = false
+-- awesome.add_signal("debug::error", function (err)
+-- -- Make sure we don't go into an endless error loop
+-- if in_error then return end
+-- in_error = true
+--
+-- naughty.notify({ preset = naughty.config.presets.critical,
+-- title = "Oops, an error happened!",
+-- text = err })
+-- in_error = false
+-- end)
+--end
+---- }}}
+
local rc, err = loadfile(os.getenv("HOME").."/.config/awesome/awesome.lua");
if rc then
rc, err = pcall(rc);