Skip to content

Commit

Permalink
forcing i3bar output_format in the spawned i3status process configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
oaken-source committed Mar 6, 2022
1 parent 88b5d22 commit 1ac4141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py3status/i3status.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ def write_tmp_i3status_config(self, tmpfile):
value = TZTIME_FORMAT
if key == "format_time":
continue
# Set output_format to i3bar for parsing regardless of what
# formatting we apply ourselves before printing
if key == "output_format":
value = "i3bar"
if isinstance(value, bool):
value = f"{value}".lower()
self.write_in_tmpfile(f' {key} = "{value}"\n', tmpfile)
Expand Down

0 comments on commit 1ac4141

Please sign in to comment.