diff options
| author | black <dylan.araps@gmail.com> | 2019-05-03 09:01:19 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-03 09:01:19 +0300 |
| commit | b63e4f2d82bc050d125179f274421e2636225680 (patch) | |
| tree | fe67130c7eb21f615484258355f3327db961eb42 | |
| parent | 13b9852f3976fae759a7518981c565a254bc19bb (diff) | |
| parent | b832581220073b01f21f1551892bde844bf57eac (diff) | |
Merge pull request #397 from Djent-/master
Improved/Fixed kitty support
| -rw-r--r-- | pywal/reload.py | 9 | ||||
| -rw-r--r-- | pywal/templates/colors-kitty.conf | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/pywal/reload.py b/pywal/reload.py index de96090..13e0ca8 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -56,8 +56,13 @@ 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..19359b0 100644 --- a/pywal/templates/colors-kitty.conf +++ b/pywal/templates/colors-kitty.conf @@ -2,6 +2,15 @@ foreground {foreground} background {background} cursor {cursor} +active_tab_foreground {background} +active_tab_background {foreground} +inactive_tab_foreground {foreground} +inactive_tab_background {background} + +active_border_color {foreground} +inactive_border_color {background} +bell_border_color {color1} + color0 {color0} color8 {color8} color1 {color1} |
