From 2fb57347188a35d8c108acfe55f78462b033f9b4 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sun, 25 Jul 2021 18:16:11 -0700 Subject: [PATCH] Add Gnome Terminal support to colors script --- assets/default/bin/derive_colors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/default/bin/derive_colors.py b/assets/default/bin/derive_colors.py index 587c97b..de2bdaa 100755 --- a/assets/default/bin/derive_colors.py +++ b/assets/default/bin/derive_colors.py @@ -71,6 +71,9 @@ def get_terminal_profile(force=False): raise ValueError("Using iTerm but no profile found") elif term_program == "Alacritty": return "Alacritty" + else: + if os.environ.get("GNOME_TERMINAL_SCREEN") is not None: + return "Gnome Terminal" # If we got this far, we don't know what to do raise ValueError(f"Unknown terminal {term_program}")