Merge pull request #46 from sphaugh/master

reload: Try to reload polybar
This commit is contained in:
Dylan Araps 2017-07-14 09:09:16 +10:00 committed by GitHub
commit abe85aadfe

View File

@ -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.")