Skip to content

Commit

Permalink
Merge pull request #994 from zetxx/patch-1
Browse files Browse the repository at this point in the history
feat: add `disabled` parameter
  • Loading branch information
tobi-wan-kenobi authored Sep 20, 2023
2 parents 9170785 + 0c2123c commit fcda13c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bumblebee_status/modules/contrib/dunstctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def __init__(self, config, theme):
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)
Expand Down

0 comments on commit fcda13c

Please sign in to comment.