2020-01-19 13:29:34 +01:00
|
|
|
import json
|
2020-01-26 13:31:20 +01:00
|
|
|
import time
|
2020-01-19 13:29:34 +01:00
|
|
|
|
|
|
|
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'
|
|
|
|
|
2020-01-26 13:31:20 +01:00
|
|
|
def wait(self, interval):
|
|
|
|
time.sleep(interval)
|
|
|
|
|
2020-01-19 13:29:34 +01:00
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|