1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

7 Commits
v219 ... v220

Author SHA1 Message Date
Mayccoll
6f877c9031 Add aura to gogh list 2021-10-25 14:57:16 -05:00
Mayccoll
27900c1a64 Merge pull request #309 from r2binx/master
Add Aura theme
2021-10-25 14:55:16 -05:00
Robin Härle
8f6f58602f Add Aura theme 2021-10-24 19:54:57 +02:00
Miguelq
2f3a0b57c5 add list of terminals 2021-09-12 18:55:06 -05:00
Mayccoll
7866f8c1d9 Merge pull request #308 from z-nexx/kitty
Added support for Kitty
2021-09-12 17:49:32 -05:00
z-nexx
e7e4780f54 Fixed comments in kitty config file header and optinal selection colors 2021-09-12 20:20:37 +02:00
z-nexx
851f840380 Added support for Kitty 2021-09-12 20:20:17 +02:00
4 changed files with 147 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ Gogh
:small_blue_diamond: <a href="http://mayccoll.github.io/Gogh"> Visit the Website </a> :small_blue_diamond: :small_blue_diamond: <a href="http://mayccoll.github.io/Gogh"> Visit the Website </a> :small_blue_diamond:
</div> </div>
## Color Scheme for Gnome Terminal, Pantheon Terminal, Tilix, and XFCE4 Terminal ## Color scheme for your terminal
Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use Gnome Terminal, Pantheon Terminal, Tilix, or XFCE4 Terminal; initially inspired by Elementary OS Luna. Also works on iTerm for macOS. You can check out the themes [here](https://mayccoll.github.io/Gogh/). Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use Gnome Terminal, Pantheon Terminal, Tilix, or XFCE4 Terminal; initially inspired by Elementary OS Luna. Also works on iTerm for macOS. You can check out the themes [here](https://mayccoll.github.io/Gogh/).
@@ -17,8 +17,19 @@ Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that u
---- ----
<br/> ## 💻 Terminals
<br/>
- Gnome - [Web](https://help.gnome.org/users/gnome-terminal/stable/)
- Mintty - [Web](https://mintty.github.io/)
- Mate - [Web](https://github.com/mate-desktop/mate-terminal)
- Pantheon / Elementary - [Web](https://github.com/elementary/terminal)
- Tilix - [Web](https://gnunn1.github.io/tilix-web/)
- XFCE4 - [Web](https://docs.xfce.org/apps/terminal/start)
- iTerm - [Web](https://iterm2.com/)
- Cygwin - [Web](https://www.cygwin.com/)
- Guake - [Web](https://sw.kovidgoyal.net/kitty/)
- Foot - [Web](https://codeberg.org/dnkl/foot)
- Kitty - [Web](https://sw.kovidgoyal.net/kitty/)
## ⚙️ Pre-Install ## ⚙️ Pre-Install
@@ -148,6 +159,11 @@ There is no blue without yellow and without orange.
## Author ## Author
- Miguel D. Quintero - [Lanet.co](https://lanet.co) - Miguel D. Quintero - [Lanet.co](https://lanet.co)
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="UCTBRYLUVKQ32" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_CO/i/scr/pixel.gif" width="1" height="1" />
</form>
<br/> <br/>
<br/> <br/>

View File

@@ -57,6 +57,8 @@ if [[ -z "${TERMINAL:-}" ]]; then
TERMINAL=$TERM_PROGRAM TERMINAL=$TERM_PROGRAM
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
TERMINAL="mintty" TERMINAL="mintty"
elif [[ "$TERM" = "xterm-kitty" ]]; then
TERMINAL="kitty"
else else
# | # |
# | Depending on how the script was invoked, we need # | Depending on how the script was invoked, we need
@@ -118,6 +120,16 @@ case "${TERMINAL}" in
fi fi
;; ;;
kitty )
if [[ -z "${KITTY_CONFIG_DIRECTORY:-}" ]]; then
KITTY_CONFIG_DIRECTORY="${HOME}/.config/kitty"
fi
CFGFILE="${KITTY_CONFIG_DIRECTORY}/kitty.conf"
if [[ ! -f "${CFGFILE}" ]]; then
printf '\n%s\n' "Error: Couldn't find an existing configuration file for Kitty."
exit 1
fi
;;
esac esac
@@ -476,6 +488,58 @@ apply_foot() {
} }
apply_kitty() {
# |
# | Applying values on Kitty
# | ===========================================
echo "Patching kitty configuration file ($CFGFILE) with include of color theme file..."
COLOR_FILE="colors.conf"
if ! grep -q "^include $COLOR_FILE$" "$CFGFILE" ; then
echo "" >> "$CFGFILE"
echo "# Added by Gogh" >> "$CFGFILE"
echo "include $COLOR_FILE" >> "$CFGFILE"
fi
CFGFILE="${KITTY_CONFIG_DIRECTORY}/$COLOR_FILE"
echo "Updating color theme file ($CFGFILE) with theme..."
rm -f "$CFGFILE"
echo "# Color theme: $PROFILE_NAME" >> "$CFGFILE"
echo "# Auto-generated by Gogh (https://mayccoll.github.io/Gogh/)" >> "$CFGFILE"
echo "" >> "$CFGFILE"
echo "color0 $COLOR_01" >> "$CFGFILE"
echo "color1 $COLOR_02" >> "$CFGFILE"
echo "color2 $COLOR_03" >> "$CFGFILE"
echo "color3 $COLOR_04" >> "$CFGFILE"
echo "color4 $COLOR_05" >> "$CFGFILE"
echo "color5 $COLOR_06" >> "$CFGFILE"
echo "color6 $COLOR_07" >> "$CFGFILE"
echo "color7 $COLOR_08" >> "$CFGFILE"
echo "color8 $COLOR_09" >> "$CFGFILE"
echo "color9 $COLOR_10" >> "$CFGFILE"
echo "color10 $COLOR_11" >> "$CFGFILE"
echo "color11 $COLOR_12" >> "$CFGFILE"
echo "color12 $COLOR_13" >> "$CFGFILE"
echo "color13 $COLOR_14" >> "$CFGFILE"
echo "color14 $COLOR_15" >> "$CFGFILE"
echo "color15 $COLOR_16" >> "$CFGFILE"
echo "background $BACKGROUND_COLOR" >> "$CFGFILE"
echo "foreground $FOREGROUND_COLOR" >> "$CFGFILE"
[ -n "$HIGHLIGHT_FG_COLOR" ] && echo "selection_foreground $HIGHLIGHT_FG_COLOR" >> "$CFGFILE"
[ -n "$HIGHLIGHT_BG_COLOR" ] && echo "selection_background $HIGHLIGHT_BG_COLOR" >> "$CFGFILE"
echo "cursor $CURSOR_COLOR" >> "$CFGFILE"
echo "Done - please reopen your kitty terminal to see the changes"
}
apply_darwin() { apply_darwin() {
# | # |
# | Applying values on iTerm2 # | Applying values on iTerm2
@@ -830,6 +894,10 @@ case "${TERMINAL}" in
apply_foot apply_foot
;; ;;
kitty )
apply_kitty
;;
* ) * )
printf '%s\n' \ printf '%s\n' \
"Unsupported terminal!" \ "Unsupported terminal!" \
@@ -844,6 +912,7 @@ case "${TERMINAL}" in
" tilix" \ " tilix" \
" xfce4-terminal" \ " xfce4-terminal" \
" foot" \ " foot" \
" kitty" \
"" \ "" \
"If you believe you have recieved this message in error," \ "If you believe you have recieved this message in error," \
"try manually setting \`TERMINAL', hint: ps -h -o comm -p \$PPID" "try manually setting \`TERMINAL', hint: ps -h -o comm -p \$PPID"

View File

@@ -24,6 +24,7 @@ declare -a THEMES=(
'argonaut.sh' 'argonaut.sh'
'arthur.sh' 'arthur.sh'
'atom.sh' 'atom.sh'
'aura.sh'
'ayu-dark.sh' 'ayu-dark.sh'
'ayu-light.sh' 'ayu-light.sh'
'ayu-mirage.sh' 'ayu-mirage.sh'
@@ -365,6 +366,8 @@ if [[ -z "${TERMINAL:-}" ]]; then
TERMINAL=$TERM_PROGRAM TERMINAL=$TERM_PROGRAM
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
TERMINAL="mintty" TERMINAL="mintty"
elif [[ "$TERM" = "xterm-kitty" ]]; then
TERMINAL="kitty"
else else
# | # |
# | Depending on how the script was invoked, we need # | Depending on how the script was invoked, we need

55
themes/aura.sh Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#110f18" # Black
export COLOR_02="#ff6767" # Red
export COLOR_03="#61ffca" # Green
export COLOR_04="#ffca85" # Yellow
export COLOR_05="#a277ff" # Blue
export COLOR_06="#a277ff" # Magenta
export COLOR_07="#61ffca" # Cyan
export COLOR_08="#edecee" # Light gray
export COLOR_09="#6d6d6d" # Dark gray
export COLOR_10="#ffca85" # Light Red
export COLOR_11="#a277ff" # Light Green
export COLOR_12="#ffca85" # Light Yellow
export COLOR_13="#a277ff" # Light Blue
export COLOR_14="#a277ff" # Light Magenta
export COLOR_15="#61ffca" # Light Cyan
export COLOR_16="#edecee" # White
export BACKGROUND_COLOR="#15141B" # Background Color
export FOREGROUND_COLOR="#edecee" # Foreground Color (text)
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export PROFILE_NAME="Aura"
# =============================================================== #
# =============================================================== #
# | 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