vdstatus/vdstatus_i3

13 lines
200 B
Text
Raw Normal View History

#!/usr/bin/python3 -u
import json
import vdstatus
import time
print('{"version":1}')
print('[')
while True:
output = vdstatus.run_plugins()
print(json.dumps(output) + ',')
time.sleep(1)