diff --git a/pywal/export.py b/pywal/export.py index 993e528..357656e 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -37,6 +37,7 @@ def get_export_type(export_type): "gtk2": "colors-gtk2.rc", "json": "colors.json", "konsole": "colors-konsole.colorscheme", + "kitty": "colors-kitty.conf", "plain": "colors", "putty": "colors-putty.reg", "rofi": "colors-rofi.Xresources", diff --git a/pywal/reload.py b/pywal/reload.py index 44deeca..ff3aa5b 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -65,6 +65,12 @@ def i3(): util.disown(["i3-msg", "reload"]) +def kitty(): + """ Reload kitty colors. """ + if shutil.which("kitty"): + util.disown(["kitty", "@", "set-colors", "--all"]) + + def polybar(): """Reload polybar colors.""" if shutil.which("polybar"): @@ -92,6 +98,7 @@ def env(xrdb_file=None, tty_reload=True): """Reload environment.""" xrdb(xrdb_file) i3() + kitty() sway() polybar() logging.info("Reloaded environment.") diff --git a/pywal/templates/colors-kitty.conf b/pywal/templates/colors-kitty.conf new file mode 100644 index 0000000..f744418 --- /dev/null +++ b/pywal/templates/colors-kitty.conf @@ -0,0 +1,20 @@ +foreground {foreground} +background {background} +cursor {cursor} + +color0 {color0} +color8 {color8} +color1 {color1} +color9 {color9} +color2 {color2} +color10 {color10} +color3 {color3} +color11 {color11} +color4 {color4} +color12 {color12} +color5 {color5} +color13 {color13} +color6 {color6} +color14 {color14} +color7 {color7} +color15 {color15}