diff --git a/i3pystatus/core/__init__.py b/i3pystatus/core/__init__.py index 6a33b7b..d9cbd67 100644 --- a/i3pystatus/core/__init__.py +++ b/i3pystatus/core/__init__.py @@ -66,7 +66,7 @@ class Status: def __init__(self, standalone=True, click_events=True, interval=1, input_stream=None, logfile=None, internet_check=None, keep_alive=False, logformat=DEFAULT_LOG_FORMAT, - default_hints={"markup": "none"}): + default_hints=None): self.standalone = standalone self.default_hints = default_hints self.click_events = standalone and click_events @@ -113,10 +113,10 @@ class Status: # Merge the module's hints with the default hints # and overwrite any duplicates with the hint from the module - merged_hints = self.default_hints.copy() - if 'hints' in kwargs: - merged_hints.update(kwargs['hints']) - kwargs['hints'] = merged_hints + hints = self.default_hints.copy() if self.default_hints else {} + hints.update(kwargs.get('hints', {})) + if hints: + kwargs['hints'] = hints try: return self.modules.append(module, *args, **kwargs)