From 369e5c789d46a54e4459583f575f8c9543fcfeb0 Mon Sep 17 00:00:00 2001 From: Thomas Sanchez Date: Fri, 9 Jan 2015 12:28:14 +0100 Subject: Add possibility to color mpd_status --- py3status/modules/mpd_status.py | 4 ++++ 1 file changed, 4 insertions(+) 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__": -- cgit v1.3