Add kitty support

This commit is contained in:
vxid 2018-07-02 20:13:09 +02:00
parent f0480c26a8
commit f13f7a05d5
3 changed files with 28 additions and 0 deletions

View File

@ -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",

View File

@ -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.")

View File

@ -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}