Merge pull request #274 from vxid/master

Add kitty support
This commit is contained in:
Dylan Araps 2018-07-04 11:06:40 +10:00 committed by GitHub
commit 0a513a1c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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", "gtk2": "colors-gtk2.rc",
"json": "colors.json", "json": "colors.json",
"konsole": "colors-konsole.colorscheme", "konsole": "colors-konsole.colorscheme",
"kitty": "colors-kitty.conf",
"plain": "colors", "plain": "colors",
"putty": "colors-putty.reg", "putty": "colors-putty.reg",
"rofi": "colors-rofi.Xresources", "rofi": "colors-rofi.Xresources",

View File

@ -65,6 +65,12 @@ def i3():
util.disown(["i3-msg", "reload"]) util.disown(["i3-msg", "reload"])
def kitty():
""" Reload kitty colors. """
if shutil.which("kitty"):
util.disown(["kitty", "@", "set-colors", "--all"])
def polybar(): def polybar():
"""Reload polybar colors.""" """Reload polybar colors."""
if shutil.which("polybar"): if shutil.which("polybar"):
@ -92,6 +98,7 @@ def env(xrdb_file=None, tty_reload=True):
"""Reload environment.""" """Reload environment."""
xrdb(xrdb_file) xrdb(xrdb_file)
i3() i3()
kitty()
sway() sway()
polybar() polybar()
logging.info("Reloaded environment.") 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}