From 74e74bb78bea585cfd12f25cc7e7a97849c55ded Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 2 Feb 2020 21:21:24 +0100 Subject: [PATCH] [core/output] Make bar actually work (flush output) Seems adding a \n isn't sufficient for flushing, instead explicitly flush stdout to produce a result reliably in the i3bar. --- core/output.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/output.py b/core/output.py index f10b486..4141e75 100644 --- a/core/output.py +++ b/core/output.py @@ -19,6 +19,7 @@ class i3(object): if 'suffix' in data: sys.stdout.write(data['suffix']) sys.stdout.write('\n') + sys.stdout.flush() def start(self): return {