summaryrefslogtreecommitdiff
path: root/func
diff options
context:
space:
mode:
Diffstat (limited to 'func')
-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)