diff --git a/core/module.py b/core/module.py index 8784792..21fbb1c 100644 --- a/core/module.py +++ b/core/module.py @@ -40,6 +40,9 @@ class Module(core.input.Object): self.theme = theme + def hidden(self): + return False + def parameter(self, key, default=None): value = default diff --git a/core/output.py b/core/output.py index d1ecfe0..85e153b 100644 --- a/core/output.py +++ b/core/output.py @@ -162,6 +162,8 @@ class i3(object): if widget.module() and self.__config.autohide(widget.module().name()): if not any(state in widget.state() for state in [ 'warning', 'critical']): continue + if module.hidden(): + continue blocks.extend(self.__separator_block(module, widget)) blocks.append(self.__content_block(module, widget)) core.event.trigger('next-widget')