An (outdated) collection of plugins for Qtile.
git clone https://github.com/m-col/qtools
Files | Refs | Readme

Commit 99a6caf3a0af41c704111c6618e475c4a9629f71
Parent: 42fdcbfc1be7bd1c228a535cb432c682ac0f80d9
Author: mcol <mcol@posteo.net>
Date: 2020-06-02 20:59:53 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2020-06-02 20:59:53 +0100

xresources: small tidy

qtools/xresources/xresources.py Modified

@@ -31,11 +31,14 @@
         '*.' stripped.
 
     """
-    resources = defaults if defaults else {}
-
     if DISPLAY is None:
         DISPLAY = os.environ.get("DISPLAY")
 
+    if defaults is None:
+        resources = {}
+    else:
+        resources = defaults
+
     try:
         conn = xcffib.connect(display=DISPLAY)
     except xcffib.ConnectionException as e: