mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-26 01:43:15 +01:00
Merge pull request #46 from sphaugh/master
reload: Try to reload polybar
This commit is contained in:
commit
abe85aadfe
@ -20,8 +20,15 @@ def reload_i3():
|
|||||||
util.disown("i3-msg", "reload")
|
util.disown("i3-msg", "reload")
|
||||||
|
|
||||||
|
|
||||||
|
def reload_polybar():
|
||||||
|
"""Reload polybar colors."""
|
||||||
|
if shutil.which("polybar"):
|
||||||
|
util.disown("pkill", "-USR1", "polybar")
|
||||||
|
|
||||||
|
|
||||||
def reload_env():
|
def reload_env():
|
||||||
"""Reload environment."""
|
"""Reload environment."""
|
||||||
reload_xrdb()
|
reload_xrdb()
|
||||||
reload_i3()
|
reload_i3()
|
||||||
|
reload_polybar()
|
||||||
print("reload: Reloaded environment.")
|
print("reload: Reloaded environment.")
|
||||||
|
Loading…
Reference in New Issue
Block a user