From c84f4c0173877216a79ff5f15fc249d772a2f37f Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Thu, 6 Dec 2018 02:49:54 -0500
Subject: [PATCH] added spotify to bar.

---
 config.py | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/config.py b/config.py
index 4214ffe..2c6219f 100644
--- a/config.py
+++ b/config.py
@@ -70,13 +70,16 @@ COLS = {
     'deus_5': '#101A28',
 }
 
+BG_COLOR = "#000000"
+FG_COLOR = "#FFFFFF"
 ALERT_COLOR="#FF0000"
+
 GROUP_URGENT_BORDER = ALERT_COLOR
-GROUP_FG = "#000000"
+GROUP_FG = BG_COLOR
 GROUP_INACTIVE_FG = "#888888"
 GROUP_ACTIVE_FG=GROUP_FG
 GROUP_SELECTED_BG="#bbbbbb"
-GROUP_BG = "#ffffff"
+GROUP_BG = FG_COLOR
 GROUP_OTHER_BORDER='#00004F'
 GROUP_THIS_BORDER="#0000FF"
 FONT_SIZE=18
@@ -432,6 +435,31 @@ screens = [
                 widget.WindowName(
                     fontsize=FONT_SIZE
                 ),
+                widget.Spacer(
+                    length=50
+                ),
+                widget.TextBox(
+                    font="font-awesome",
+                    text=(""),
+                    fontsize=FONT_SIZE,
+                    padding=0
+                ),
+                widget.Spacer(
+                    length=10
+                ),
+                widget.Mpris2(
+                    background=BG_COLOR,
+                    foreground=FG_COLOR,
+                    name='spotify',
+                    stop_pause_text='',
+                    fontsize=FONT_SIZE,
+                    scroll_chars=None,
+                    display_metadata=['xesam:title', 'xesam:artist'],
+                    objname="org.mpris.MediaPlayer2.spotify",
+                ),
+                widget.Spacer(
+                    length=75
+                ),
                 widget.TextBox(
                     font="font-awesome",
                     text=("ï‚“"),
-- 
GitLab