Merge pull request #390 from Meakk/master

reload: support for bspwm
This commit is contained in:
black 2019-03-05 18:05:34 +02:00 committed by GitHub
commit 53740712a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,12 @@ def i3():
util.disown(["i3-msg", "reload"])
def bspwm():
"""Reload bspwm colors."""
if shutil.which("bspc") and util.get_pid("bspwm"):
util.disown(["bspc", "wm", "-r"])
def kitty():
""" Reload kitty colors. """
if shutil.which("kitty") and util.get_pid("kitty"):
@ -81,6 +87,7 @@ def env(xrdb_file=None, tty_reload=True):
"""Reload environment."""
xrdb(xrdb_file)
i3()
bspwm()
kitty()
sway()
polybar()