Pull low battery warning into shell

This commit is contained in:
David Heinemeier Hansson committed 2026-05-19 21:28:32 +02:00
1 parent 15f461c1df
commit 1a630b1239
12 files changed
+119 -69

No files matched your search

+4 -5
View File
@@ -108,11 +108,10 @@ Item {
// - omarchy-action: a user-action confirmation toast ("Theme changed",
// "Screenshot saved"). The user JUST did something — their feedback
// should show.
// - urgency=critical AND app_name=notify-send: bare-CLI emergency alerts
// (omarchy-battery-monitor uses this for low-battery; a few scripts
// use it for emergency failures). Trusted because it's almost always
// omarchy or system shell scripts — chat apps set app_name to
// their brand (Discord/Slack/Vesktop) which falls outside this rule.
// - urgency=critical AND app_name=notify-send: bare-CLI emergency alerts.
// Trusted because it's almost always omarchy or system shell scripts —
// chat apps set app_name to their brand (Discord/Slack/Vesktop), which
// falls outside this rule.
function shouldBypassDnd(notification) {
var appName = String(notification.appName || "")
if (appName === "omarchy-action") return true