From 524b52dee5749fa0dc84f6c0ab0de4d729689349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20V=C3=A1squez?= Date: Sun, 6 Aug 2017 06:25:17 -0600 Subject: [PATCH 1/2] Theme is optional for GTK refresh I thought maybe that specific theme could be optional for running the reload script. --- pywal/reload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pywal/reload.py b/pywal/reload.py index a01184c..e81cfb2 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -32,11 +32,11 @@ def gtk(): # Here we call a Python 2 script to reload the GTK themes. # This is done because the Python 3 GTK/Gdk libraries don't # provide a way of doing this. - if shutil.which("python2"): - util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"]) + if shutil.which("python2"): + util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"]) - else: - print("warning: GTK2 reload support requires Python 2.") + else: + print("warning: GTK2 reload support requires Python 2.") def i3(): From 5b3806d0a8e907026f181c9dba101723b9bde2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20V=C3=A1squez?= Date: Sun, 6 Aug 2017 07:43:41 -0600 Subject: [PATCH 2/2] de-indenting the comments --- pywal/reload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pywal/reload.py b/pywal/reload.py index e81cfb2..f284966 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -29,9 +29,9 @@ def gtk(): if gtk2_file.is_file(): shutil.copy(gtk2_file, theme_path / "gtk-2.0") - # Here we call a Python 2 script to reload the GTK themes. - # This is done because the Python 3 GTK/Gdk libraries don't - # provide a way of doing this. + # Here we call a Python 2 script to reload the GTK themes. + # This is done because the Python 3 GTK/Gdk libraries don't + # provide a way of doing this. if shutil.which("python2"): util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])