From c84a7381852446351955e10774d815fa9c05a995 Mon Sep 17 00:00:00 2001 From: fernando Date: Sun, 2 Apr 2023 21:26:59 -0300 Subject: [PATCH] Add Gruvbox Material (dark medium) theme --- gogh.sh | 1 + installs/gruvbox-material.sh | 49 ++++++++++++++++++++++++++++++++++++ themes/Gruvbox Material.yml | 25 ++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100755 installs/gruvbox-material.sh create mode 100644 themes/Gruvbox Material.yml diff --git a/gogh.sh b/gogh.sh index d8b560a..d3b9748 100755 --- a/gogh.sh +++ b/gogh.sh @@ -98,6 +98,7 @@ declare -a THEMES=( 'grape.sh' 'grass.sh' 'gruvbox-dark.sh' + 'gruvbox-material.sh' 'gruvbox.sh' 'hardcore.sh' 'harper.sh' diff --git a/installs/gruvbox-material.sh b/installs/gruvbox-material.sh new file mode 100755 index 0000000..9b2f041 --- /dev/null +++ b/installs/gruvbox-material.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +export PROFILE_NAME="Gruvbox Material" + +export COLOR_01="#3C3836" # Black (Host) +export COLOR_02="#EA6962" # Red (Syntax string) +export COLOR_03="#A9B665" # Green (Command) +export COLOR_04="#D8A657" # Yellow (Command second) +export COLOR_05="#7DAEA3" # Blue (Path) +export COLOR_06="#D3869B" # Magenta (Syntax var) +export COLOR_07="#89B482" # Cyan (Prompt) +export COLOR_08="#D4BE98" # White + +export COLOR_09="#3C3836" # Bright Black +export COLOR_10="#EA6962" # Bright Red (Command error) +export COLOR_11="#A9B665" # Bright Green (Exec) +export COLOR_12="#D8A657" # Bright Yellow +export COLOR_13="#7DAEA3" # Bright Blue (Folder) +export COLOR_14="#D3869B" # Bright Magenta +export COLOR_15="#89B482" # Bright Cyan +export COLOR_16="#D4BE98" # Bright White + +export BACKGROUND_COLOR="#282828" # Background +export FOREGROUND_COLOR="#D4BE98" # Foreground (Text) + +export CURSOR_COLOR="#D4BE98" # Cursor + +# | =========================================================================== +# | Apply Colors +# | =========================================================================== +SCRIPT_PATH="${SCRIPT_PATH:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" +PARENT_PATH="$(dirname "${SCRIPT_PATH}")" + +# Allow developer to change url to forked url for easier testing +# IMPORTANT: Make sure you export this variable if your main shell is not bash +BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Gogh-Co/Gogh/master"} + + +if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then + bash "${PARENT_PATH}/apply-colors.sh" +else + if [[ "$(uname)" = "Darwin" ]]; then + # OSX ships with curl and ancient bash + bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")" + else + # Linux ships with wget + bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")" + fi +fi diff --git a/themes/Gruvbox Material.yml b/themes/Gruvbox Material.yml new file mode 100644 index 0000000..ea46518 --- /dev/null +++ b/themes/Gruvbox Material.yml @@ -0,0 +1,25 @@ +--- +name: 'Gruvbox Material' + +color_01: '#3C3836' # Black (Host) +color_02: '#EA6962' # Red (Syntax string) +color_03: '#A9B665' # Green (Command) +color_04: '#D8A657' # Yellow (Command second) +color_05: '#7DAEA3' # Blue (Path) +color_06: '#D3869B' # Magenta (Syntax var) +color_07: '#89B482' # Cyan (Prompt) +color_08: '#D4BE98' # White + +color_09: '#3C3836' # Bright Black +color_10: '#EA6962' # Bright Red (Command error) +color_11: '#A9B665' # Bright Green (Exec) +color_12: '#D8A657' # Bright Yellow +color_13: '#7DAEA3' # Bright Blue (Folder) +color_14: '#D3869B' # Bright Magenta +color_15: '#89B482' # Bright Cyan +color_16: '#D4BE98' # Bright White + +background: '#282828' # Background +foreground: '#D4BE98' # Foreground (Text) + +cursor: '#D4BE98' # Cursor