From f4bf55121582db8a982f1bfb4622564db6f82dbc Mon Sep 17 00:00:00 2001 From: Sean Haugh Date: Wed, 12 Jul 2017 13:48:52 -0500 Subject: [PATCH] reload: Try to reload polybar --- pywal/reload.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pywal/reload.py b/pywal/reload.py index 03e2742..5cc7307 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -20,8 +20,15 @@ def reload_i3(): util.disown("i3-msg", "reload") +def reload_polybar(): + """Reload polybar colors.""" + if shutil.which("polybar"): + util.disown("pkill", "-USR1", "polybar") + + def reload_env(): """Reload environment.""" reload_xrdb() reload_i3() + reload_polybar() print("reload: Reloaded environment.")