diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-09-16 23:38:21 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-09-16 23:38:21 -0500 |
| commit | 46fdaae8f731b04f74349559a32b8a8284b455c0 (patch) | |
| tree | ccb4233415ca4a3d11fc00f3874bdf550902beee | |
| parent | 0b187704070fb474cf46c58f767010aefc02ecaf (diff) | |
| download | awesome-46fdaae8f731b04f74349559a32b8a8284b455c0.tar.xz awesome-46fdaae8f731b04f74349559a32b8a8284b455c0.zip | |
notify on request::display_error like in 4.3 (for awesome-git)
| -rw-r--r-- | func/notifyerror.lua | 9 | ||||
| -rw-r--r-- | rc.lua | 1 |
2 files changed, 10 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) @@ -16,6 +16,7 @@ startup = not awesome.get_xproperty("awesome_session_started") awesome.set_xproperty("awesome_session_started", true) -- import modules +require("func.notifyerror") require("theme") -- load first require("layouts") -- load before bar pcall(require, "hosts." .. hostname) -- call override module if one exists |
