dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 4dd988712241b8dd28ef271b3d032e2b1ef7f10e
parent b2e3f288e4340ff85549875545a7646eea96c1a5
Author: dudley <pyratebeard@gmail.com>
Date:   Fri,  9 Sep 2016 12:36:58 +0100

error handling tidied up, messages changed

Diffstat:
Mawesome/.config/awesome/rc.lua | 37+++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)

diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua @@ -40,30 +40,27 @@ lain = require("lain") awful.util.spawn_with_shell("xcompmgr -cF &") --- {{{ 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) +-- error handling if awesome.startup_errors then - naughty.notify({ preset = naughty.config.presets.critical, - title = "Oops, there were errors during startup!", - text = awesome.startup_errors }) + naughty.notify({ + preset = naughty.config.presets.critical, + title = "arrgh! there was mutiny during startup!", + text = awesome.startup_errors + }) end - --- Handle runtime errors after startup do - local in_error = false - awesome.connect_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) + local in_error = false + awesome.connect_signal("debug::error", function (err) + if in_error then return end + in_error = true + naughty.notify({ + preset = naughty.config.presets.critical, + title = "to err is human...", + text = err + }) + in_error = false + end) end --- }}} -- {{{ Variable definitions -- Themes define colours, icons, font and wallpapers.