Skip to content

Commit

Permalink
fixing color codes to lowercase, because tmux expands #F in #FF0000 b…
Browse files Browse the repository at this point in the history
…efore evaluating colors (probably a bug in tmux)
  • Loading branch information
oaken-source committed Feb 22, 2022
1 parent c362d45 commit 47c5d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py3status/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 47c5d9f

Please sign in to comment.