[modules/cmus] Re-add cmus module

Re-add a first version of the cmus module originally contributed by
@paxy97.

Still missing:
* Icon themes (status)
* On-click actions

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-10 07:47:24 +01:00
parent 9ce7739efb
commit 87e76b9e40
6 changed files with 102 additions and 1 deletions

View file

@ -8,9 +8,10 @@ import uuid
class Widget(object):
"""Represents a single visible block in the status bar"""
def __init__(self, full_text):
def __init__(self, full_text="", name=""):
self._full_text = full_text
self.module = None
self.name = name
self.id = str(uuid.uuid4())
def link_module(self, module):