summaryrefslogtreecommitdiff
path: root/func/notifyerror.lua
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-09-16 23:38:21 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-09-16 23:38:21 -0500
commit46fdaae8f731b04f74349559a32b8a8284b455c0 (patch)
treeccb4233415ca4a3d11fc00f3874bdf550902beee /func/notifyerror.lua
parent0b187704070fb474cf46c58f767010aefc02ecaf (diff)
downloadawesome-46fdaae8f731b04f74349559a32b8a8284b455c0.tar.xz
awesome-46fdaae8f731b04f74349559a32b8a8284b455c0.zip
notify on request::display_error like in 4.3 (for awesome-git)
Diffstat (limited to 'func/notifyerror.lua')
-rw-r--r--func/notifyerror.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/func/notifyerror.lua b/func/notifyerror.lua
new file mode 100644
index 0000000..abd3329
--- /dev/null
+++ b/func/notifyerror.lua
@@ -0,0 +1,9 @@
+local naughty = require("naughty")
+
+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)