diff options
| author | djent- <djent-.github.io> | 2019-03-22 17:44:26 -0400 |
|---|---|---|
| committer | djent- <djent-.github.io> | 2019-03-22 17:44:26 -0400 |
| commit | 3ffd44185b8243091ec22ab64bab235c72c51377 (patch) | |
| tree | e63769e9f7369448c03e6c0b52c61697006c8e3d /pywal | |
| parent | c823e3c9dbd0100ca09caf824e77d296685a1c1e (diff) | |
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.
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/reload.py | 4 | ||||
| -rw-r--r-- | pywal/templates/colors-kitty.conf | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/pywal/reload.py b/pywal/reload.py index de96090..720b0f4 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -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(): diff --git a/pywal/templates/colors-kitty.conf b/pywal/templates/colors-kitty.conf index f744418..c9324e0 100644 --- a/pywal/templates/colors-kitty.conf +++ b/pywal/templates/colors-kitty.conf @@ -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} |
