diff options
| author | Thomas Sanchez <thomas.sanchez@fyber.com> | 2015-01-09 12:28:14 +0100 |
|---|---|---|
| committer | Thomas Sanchez <thomas.sanchez@fyber.com> | 2015-01-09 14:13:37 +0100 |
| commit | 369e5c789d46a54e4459583f575f8c9543fcfeb0 (patch) | |
| tree | e2bfdeed4959348307194867e276877397b312a7 /py3status/modules | |
| parent | d375c7d8189af5b645992457eb027b96d68f6296 (diff) | |
Add possibility to color mpd_status
Diffstat (limited to 'py3status/modules')
| -rw-r--r-- | py3status/modules/mpd_status.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py3status/modules/mpd_status.py b/py3status/modules/mpd_status.py index 19de369..aa48f96 100644 --- a/py3status/modules/mpd_status.py +++ b/py3status/modules/mpd_status.py @@ -42,6 +42,7 @@ class Py3status: # available configuration parameters cache_timeout = 2 + color = None format = '{state} №{pos}. {artist} - {title} [{time}] | {next_title}' hide_when_paused = False hide_when_stopped = True @@ -110,6 +111,9 @@ class Py3status: 'transformed': transformed } + if self.color: + response['color'] = self.color + return response if __name__ == "__main__": |
