My collection of plugins for the Qtile window manager.
git clone https://mcol.xyz/code/qtools
Log | Files | Refs | README

commit 99a6caf3a0af41c704111c6618e475c4a9629f71
parent 42fdcbfc1be7bd1c228a535cb432c682ac0f80d9
Author: mcol <mcol@posteo.net>
Date:   Tue,  2 Jun 2020 20:59:53 +0100

xresources: small tidy

Diffstat:
Mqtools/xresources/xresources.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/qtools/xresources/xresources.py b/qtools/xresources/xresources.py @@ -31,11 +31,14 @@ def get(DISPLAY=None, defaults=None): '*.' 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: