[modules/cpu2] Update to latest API
This commit is contained in:
parent
b34178ee71
commit
cfa1a5c896
5 changed files with 63 additions and 53 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue