diff --git a/data/themes.json b/data/themes.json index f7d6d3c..11d6933 100644 Binary files a/data/themes.json and b/data/themes.json differ diff --git a/gogh.sh b/gogh.sh index 5ea4f34..d89c1a6 100755 --- a/gogh.sh +++ b/gogh.sh @@ -47,6 +47,7 @@ declare -a THEMES=( 'crayon-pony-fish.sh' 'dark-pastel.sh' 'darkside.sh' + 'dehydration.sh' 'desert.sh' 'dimmed-monokai.sh' 'dracula.sh' diff --git a/images/themes/dehydration.png b/images/themes/dehydration.png new file mode 100644 index 0000000..e692bba Binary files /dev/null and b/images/themes/dehydration.png differ diff --git a/themes/dehydration.sh b/themes/dehydration.sh new file mode 100755 index 0000000..1bd1df0 --- /dev/null +++ b/themes/dehydration.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash + +# ====================CONFIG THIS =============================== # +export COLOR_01="#333333" # Black +export COLOR_02="#ff5555" # Red +export COLOR_03="#5fd38d" # Green +export COLOR_04="#ff9955" # Yellow +export COLOR_05="#3771c8" # Blue +export COLOR_06="#bc5fd3" # Magenta +export COLOR_07="#5fd3bc" # Cyan +export COLOR_08="#999999" # Light gray + +export COLOR_09="#666666" # Dark gray +export COLOR_10="#ff8080" # Light Red +export COLOR_11="#87deaa" # Light Green +export COLOR_12="#ffb380" # Light Yellow +export COLOR_13="#5f8dd3" # Light Blue +export COLOR_14="#cd87de" # Light Magenta +export COLOR_15="#87decd" # Light Cyan +export COLOR_16="#cccccc" # White + +export BACKGROUND_COLOR="$COLOR_01" # Background Color +export FOREGROUND_COLOR="$COLOR_16" # Foreground Color (text) +export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color +export PROFILE_NAME="DeHydration" +# =============================================================== # + + + + + + + +# =============================================================== # +# | 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/Mayccoll/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