From 9251217bb3aff34a0603b94d2755ef99b87d5d4b Mon Sep 17 00:00:00 2001 From: Elin Angelov Date: Wed, 20 Sep 2023 14:59:24 +0300 Subject: [PATCH] feat: add `disabled` parameter it pauses dunst notification on startup --- bumblebee_status/modules/contrib/dunstctl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee_status/modules/contrib/dunstctl.py b/bumblebee_status/modules/contrib/dunstctl.py index f082f1b..1b5d3fb 100644 --- a/bumblebee_status/modules/contrib/dunstctl.py +++ b/bumblebee_status/modules/contrib/dunstctl.py @@ -28,6 +28,8 @@ class Module(core.module.Module): self.__states = {"unknown": ["unknown", "critical"], "true": ["muted", "warning"], "false": ["unmuted"]} + if util.format.asbool(self.parameter("disabled", False)): + util.cli.execute("dunstctl set-paused true", ignore_errors=True) def toggle_state(self, event): util.cli.execute("dunstctl set-paused toggle", ignore_errors=True)