From f57f634101496e9c9a5ac4af0d8eea25a36174df Mon Sep 17 00:00:00 2001 From: Rawiri Blundell Date: Wed, 21 Aug 2019 23:18:05 +1200 Subject: [PATCH] Add colorcli and relaxed themes --- apply-colors.sh | 8 ++++++++ gogh.sh | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/apply-colors.sh b/apply-colors.sh index 1dfc0e0..c042345 100644 --- a/apply-colors.sh +++ b/apply-colors.sh @@ -33,6 +33,8 @@ GLOBAL_VAR_CLEANUP() { unset BACKGROUND_COLOR unset FOREGROUND_COLOR unset CURSOR_COLOR + unset HIGHLIGHT_FG_COLOR + unset HIGHLIGHT_BG_COLOR unset PROFILE_NAME } @@ -235,6 +237,12 @@ set_theme() { dset background-color "'${BACKGROUND_COLOR}'" dset foreground-color "'${FOREGROUND_COLOR}'" + if [[ -n "${HIGHLIGHT_BG_COLOR:-}" ]]; then + dset highlight-colors-set "true" + dset highlight-background-color "${HIGHLIGHT_BG_COLOR}" + dset highlight-foreground-color "${HIGHLIGHT_FG_COLOR:-$FOREGROUND_COLOR}" + fi + if [[ -n "${BOLD_COLOR:-}" ]]; then dset bold-color "'${BOLD_COLOR}'" dset bold-color-same-as-fg "false" diff --git a/gogh.sh b/gogh.sh index e22996e..b0b7071 100755 --- a/gogh.sh +++ b/gogh.sh @@ -11,6 +11,8 @@ GLOBAL_VAR_CLEANUP(){ trap 'GLOBAL_VAR_CLEANUP; trap - EXIT' EXIT HUP INT QUIT PIPE TERM +# TO-DO: Investigate dynamically building this array e.g. +# curl -s https://github.com/Mayccoll/Gogh/tree/master/themes | grep -o "title=.*\.sh\" " | awk -F '=' '{print $2}' declare -a THEMES=( '3024-day.sh' '3024-night.sh' @@ -40,6 +42,7 @@ declare -a THEMES=( 'clrs.sh' 'cobalt2.sh' 'cobalt-neon.sh' + 'colorcli.sh' 'crayon-pony-fish.sh' 'dark-pastel.sh' 'darkside.sh' @@ -141,6 +144,7 @@ declare -a THEMES=( 'pro.sh' 'red-alert.sh' 'red-sands.sh' + 'relaxed.sh' 'rippedcasts.sh' 'royal.sh' 'sat.sh'