From 47c5d9fe5a9dbe1da24e53ce7c3425de1afbbee8 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Tue, 22 Feb 2022 07:26:54 +0100 Subject: [PATCH] fixing color codes to lowercase, because tmux expands #F in #FF0000 before evaluating colors (probably a bug in tmux) --- py3status/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py3status/core.py b/py3status/core.py index cb35c2838d..fd183bc4ae 100644 --- a/py3status/core.py +++ b/py3status/core.py @@ -974,7 +974,7 @@ def process_module_output(self, module): if self.options.wm_name == 'tmux': for output in outputs: if 'color' in output: - output['full_text'] = f"#[fg={output['color']}]{output['full_text']}#[fg=white]" + output['full_text'] = f"#[fg={output['color'].lower()}]{output['full_text']}#[default]" return "".join(x['full_text'] for x in outputs) # Create the json string output. else: @@ -1082,7 +1082,7 @@ def run(self): # build output string and dump to stdout out = "" if self.options.wm_name == "tmux": - out = "#[fg=brightblack]|#[fg=white]".join(x for x in output if x) + out = "#[fg=brightblack]|#[default]".join(x for x in output if x) write(f"{out}\n") else: out = ",".join(x for x in output if x)