My Qtile window manager configuration
git clone https://github.com/m-col/qtile-config
Files | Refs | Readme

Commit a81183e061de7f328b34395c5767a5c4e8de99f9
Parent: 9fb8c4bcaae77cd52f3907651dc2e024e3b5611d
Author: mcol <mcol@posteo.net>
Date: 2021-06-25 23:44:28 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-06-25 23:44:28 +0100

make xephyr fake mpd textbox actually mpd widget

config.py Modified

@@ -252,22 +252,15 @@
     'fontsize': 12,
 }
 
-if IS_XEPHYR:
-    mpd2 = widget.TextBox(
-        'mpd here',
-        foreground=colours[12],
-        font='TamzenForPowerline Bold',
-    )
-else:
-    mpd2 = widget.Mpd2(
-        no_connection='',
-        status_format='{artist} - {title}',
-        status_format_stopped='',
-        foreground=colours[12],
-        idle_format='',
-        font='TamzenForPowerline Bold',
-        update_interval=10,
-    )
+mpd2 = widget.Mpd2(
+    no_connection='',
+    status_format='mpd here' if IS_XEPHYR else '{artist} - {title}',
+    status_format_stopped='',
+    foreground=colours[12],
+    idle_format='',
+    font='TamzenForPowerline Bold',
+    update_interval=10,
+)
 
 cpugraph = widget.CPUGraph(
     graph_color=colours[12],