diff --git a/bumblebee/input.py b/bumblebee/input.py index b9389c2..6bbdc3d 100644 --- a/bumblebee/input.py +++ b/bumblebee/input.py @@ -18,15 +18,17 @@ def read_input(inp): """Read i3bar input and execute callbacks""" epoll = select.epoll() epoll.register(sys.stdin.fileno(), select.EPOLLIN) + f = open("/tmp/bee.log", "a") while inp.running: for thread in threading.enumerate(): if thread.name == "MainThread" and not thread.is_alive(): return events = epoll.poll(1) - for fileno, event in events: - line = sys.stdin.readline().strip(",").strip() + line = "[" + while "[" in line: + line = sys.stdin.readline().strip(",").strip() inp.has_event = True try: event = json.loads(line)