nixos-config/modules/home-manager/awesome/dotfiles/signal/error.lua
2024-07-13 02:52:19 +09:00

12 lines
426 B
Lua

local naughty = require("naughty")
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
naughty.connect_signal("request::display_error", function(message, startup)
naughty.notification {
urgency = "critical",
title = "Oops, an error happened"..(startup and " during startup!" or "!"),
message = message
}
end)