conf2/awesome/.config/awesome/ercheck-config.lua
2019-10-19 18:54:31 +02:00

28 lines
529 B
Lua

local naughty = require("naughty")
if awesome.startup_errors then
naughty.notify({
preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_error
})
end
do
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 = "Oops, an error happened!",
text = err
})
in_error = false
end
)
end