23 lines
530 B
Python
23 lines
530 B
Python
class Py3status:
|
|
|
|
force = False
|
|
|
|
class Meta:
|
|
container = True
|
|
|
|
def __init__(self):
|
|
self.items = []
|
|
|
|
def colorize(self):
|
|
output = []
|
|
for item in self.items:
|
|
out = self.py3.get_output(item)
|
|
if out and 'separator' not in out[-1]:
|
|
out[-1]['separator'] = True
|
|
for o in out:
|
|
if self.force or not o.get('color'):
|
|
o['color'] = self.color
|
|
output += out
|
|
|
|
return {'composite': output}
|