[modules/cpu2] Update to latest API

This commit is contained in:
tobi-wan-kenobi 2020-04-26 10:33:41 +02:00
parent b34178ee71
commit cfa1a5c896
5 changed files with 63 additions and 53 deletions

View file

@ -150,6 +150,8 @@ class i3(object):
blk = block(self.__theme, module, widget)
blk.set('min_width', widget.get('theme.minwidth'))
blk.set('full_text', self.__content[widget])
if widget.get('pango', False):
blk.set('markup', 'pango')
if self.__config.debug():
blk.set('__state', ', '.join(module.state(widget)))
return blk