summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblack <dylan.araps@gmail.com>2019-05-03 09:01:19 +0300
committerGitHub <noreply@github.com>2019-05-03 09:01:19 +0300
commitb63e4f2d82bc050d125179f274421e2636225680 (patch)
treefe67130c7eb21f615484258355f3327db961eb42
parent13b9852f3976fae759a7518981c565a254bc19bb (diff)
parentb832581220073b01f21f1551892bde844bf57eac (diff)
Merge pull request #397 from Djent-/master
Improved/Fixed kitty support
-rw-r--r--pywal/reload.py9
-rw-r--r--pywal/templates/colors-kitty.conf9
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}