bumblebee-status/core/output.py
Tobias Witek a17cd4759c [core/output] Implement simple wait
To pace the output lines, implement a simple wait() call for the i3
output.
2020-01-26 13:31:20 +01:00

20 lines
409 B
Python

import json
import time
class i3(object):
def start(self):
return '{}\n'.format(json.dumps({ 'version': 1, 'click_events': True }))
def stop(self):
return ']\n'
def begin_status_line(self):
return '['
def end_status_line(self):
return '],\n'
def wait(self, interval):
time.sleep(interval)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4