From 02f355973457707e41833d7cc1c75362aa76fe18 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Wed, 26 Apr 2017 07:37:47 +0200 Subject: [PATCH] [input] Terminate i3 protocol header with newline According to https://i3wm.org/docs/i3bar-protocol.html, the header block needs to be terminated by a newline. fixes #76 --- bumblebee/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index 5e34732..ee11037 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -79,7 +79,7 @@ class I3BarOutput(object): def start(self): """Print start preamble for i3bar protocol""" self._started = True - sys.stdout.write(json.dumps({"version": 1, "click_events": True}) + "[\n") + sys.stdout.write(json.dumps({"version": 1, "click_events": True}) + "\n[\n") def stop(self): """Finish i3bar protocol"""