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

Commit bbc7cc7ec1743ef0c08379a8d1f34b7e94f6fecb
Parent: 8bccc8cc554de5438e267575150e92977e73d4ca
Author: mcol <mcol@posteo.net>
Date: 2021-06-16 21:43:54 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-06-16 21:43:54 +0100

make widgets and float rules nicer for wephyr development

config.py Modified

@@ -189,6 +189,8 @@
     float_rules=[
         Match(title='wlroots - X11-1'),
         Match(title='wlroots - X11-2'),
+        Match(title='wlroots - WL-1'),
+        Match(title='wlroots - WL-2'),
         Match(title='Open File'),
         Match(wm_class='Arandr'),
         Match(wm_class='confirm'),
@@ -237,15 +239,22 @@
     'fontsize': 12,
 }
 
-mpd2 = widget.Mpd2(
-    no_connection='',
-    status_format='{artist} - {title}',
-    status_format_stopped='',
-    foreground=colours[12],
-    idle_format='',
-    font='TamzenForPowerline Bold',
-    update_interval=10,
-)
+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,
+    )
 
 cpugraph = widget.CPUGraph(
     graph_color=colours[12],
@@ -255,7 +264,7 @@
     margin_y=4,
     samples=50,
     line_width=4,
-    width=200,
+    width=50 if IS_XEPHYR else 200,
     type='box',
     frequency=1,
 )