From 77106e91deaa5c15e9b693a63f1a19bc28ba6bf0 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Sep 2021 15:50:59 -0700 Subject: [PATCH] Add tokyonight to derived colors --- assets/default/bin/derive_colors.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/default/bin/derive_colors.py b/assets/default/bin/derive_colors.py index 4b34bf5..76cc1f6 100755 --- a/assets/default/bin/derive_colors.py +++ b/assets/default/bin/derive_colors.py @@ -50,7 +50,7 @@ def run_applescript(script: str) -> Tuple[int, str, str]: return proc.returncode, str(stdout).strip(), str(stderr).strip() -def get_terminal_profile(force: bool=False): +def get_terminal_profile(force: bool = False): """Returns the terminal profile from TERM_PROFILE or derrives through detecting the profile""" if not force and TERM_VAR in os.environ: @@ -140,6 +140,8 @@ def get_nvim_colorscheme( colorscheme = "default" elif "Solarized" in terminal_profile: colorscheme = "solarized" + elif "Tokyo Night" in terminal_profile: + colorscheme = "tokyonight" return colorscheme @@ -187,9 +189,14 @@ def get_fish_theme( fish_theme = "wombat" elif "Solarized" in terminal_profile: if is_dark: - fish_theme = "solarized dark" + fish_theme = "solarized_dark" else: - fish_theme = "solarized light" + fish_theme = "solarized_light" + elif "Tokyo Night" in terminal_profile: + if is_dark: + fish_theme = "fish_tokyonight_night" + else: + fish_theme = "fish_tokyonight_day" return fish_theme