[core/output] Add id of widget and module to output

In the process of that, fix a bug in how the parent class constructors
were invoked.
This commit is contained in:
Tobias Witek 2020-02-08 13:45:52 +01:00
parent 4d34fa9261
commit fca364554e
4 changed files with 8 additions and 6 deletions

View file

@ -38,7 +38,9 @@ class i3(object):
for module in self._modules:
for widget in module.widgets():
status.append({
'full_text': widget.full_text()
'full_text': widget.full_text(),
'instance': widget.id(),
'name': module.id(),
})
return {
'data': status,