Fix changing kitty's colors. Kitty must be run with -1 or --single-instance to affect all open kitty windows. Only works when wal is run from kitty.

This commit is contained in:
djent- 2019-03-22 17:44:26 -04:00
parent c823e3c9db
commit 3ffd44185b
2 changed files with 7 additions and 2 deletions

View File

@ -56,8 +56,8 @@ def bspwm():
def kitty():
""" Reload kitty colors. """
if shutil.which("kitty") and util.get_pid("kitty"):
util.disown(["kitty", "@", "set-colors", "--all"])
if shutil.which("kitty") and util.get_pid("kitty") and os.getenv('TERM') == 'xterm-kitty':
subprocess.call(["kitty", "@", "set-colors", "--all", os.path.join(CACHE_DIR, "colors-kitty.conf")])
def polybar():

View File

@ -2,6 +2,11 @@ foreground {foreground}
background {background}
cursor {cursor}
active_tab_foreground {foreground}
active_tab_background {background}
inactive_tab_foreground {background}
inactive_tab_background {foreground}
color0 {color0}
color8 {color8}
color1 {color1}