From 4ea0256c56e3987e2e43b9250897010e3b32632a Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 21 Sep 2023 20:21:38 +0000 Subject: [PATCH] swaync: ignore "Modem crashed!" notifications/warnings --- hosts/common/programs/swaynotificationcenter.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/common/programs/swaynotificationcenter.nix b/hosts/common/programs/swaynotificationcenter.nix index 3886f649..99daf604 100644 --- a/hosts/common/programs/swaynotificationcenter.nix +++ b/hosts/common/programs/swaynotificationcenter.nix @@ -213,10 +213,15 @@ in # - `category`: string # # test rules by using `notify-send` (libnotify) - sxmo-extraneous = { + sxmo-extraneous-daemons = { state = "ignored"; summary = "(sxmo_hook_lisgd|Autorotate) (Stopped|Started)"; }; + sxmo-extraneous-warnings = { + state = "ignored"; + # "Modem crashed! 30s recovery.": happens on sxmo_hook_postwake.sh (i.e. unlock) + summary = "^Modem crashed.*$"; + }; }; widgets = [ # what to show in the notification center (and in which order).