mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6296396f2 | ||
|
|
534d61bcae | ||
|
|
2aa8bcda81 | ||
|
|
88293cf2cb | ||
|
|
ead9e03605 | ||
|
|
89c287fa4d | ||
|
|
553f8496b0 | ||
|
|
e9f0cd4077 | ||
|
|
eeba3896dc | ||
|
|
969bd3188b | ||
|
|
0408e99b35 | ||
|
|
38f73d92ac | ||
|
|
8f191c713e | ||
|
|
ff15f921a4 | ||
|
|
ec6bff26f9 | ||
|
|
dc1f778c0a | ||
|
|
97427f16ea | ||
|
|
2c6e5898db |
31
README.md
31
README.md
@@ -17,20 +17,6 @@ Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that u
|
||||
|
||||
----
|
||||
|
||||
## 💻 Terminals
|
||||
|
||||
- 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
|
||||
|
||||
In your terminal type:
|
||||
@@ -81,6 +67,21 @@ export TERMINAL=gnome-terminal
|
||||
./dracula.sh
|
||||
```
|
||||
|
||||
## 💻 Terminals
|
||||
|
||||
- Cygwin - [Web](https://www.cygwin.com/)
|
||||
- Foot - [Web](https://codeberg.org/dnkl/foot)
|
||||
- Gnome - [Web](https://help.gnome.org/users/gnome-terminal/stable/)
|
||||
- Guake - [Web](https://sw.kovidgoyal.net/kitty/)
|
||||
- iTerm - [Web](https://iterm2.com/)
|
||||
- Kitty - [Web](https://sw.kovidgoyal.net/kitty/)
|
||||
- Konsole - [Web](https://konsole.kde.org/)
|
||||
- Mate - [Web](https://github.com/mate-desktop/mate-terminal)
|
||||
- Mintty - [Web](https://mintty.github.io/)
|
||||
- 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)
|
||||
|
||||
<br/>
|
||||
|
||||
## 🎨 [Themes](https://mayccoll.github.io/Gogh/)
|
||||
@@ -128,6 +129,7 @@ If you want to create your own color scheme or contribute to the project, [start
|
||||
- [SMYCK](http://color.smyck.org/) by [John-Paul Bader](https://github.com/hukl)
|
||||
- [Snazzy](https://github.com/sindresorhus/hyper-snazzy) by [Sindre Sorhus](https://github.com/sindresorhus)
|
||||
- [Solarized](https://ethanschoonover.com/solarized) by [Ethan Schoonover](https://github.com/altercation)
|
||||
- [Sonokai](https://github.com/sainnhe/sonokai) by [Sainnhe Park](https://github.com/sainnhe)
|
||||
- [Srcery](https://github.com/roosta/vim-srcery) by [Daniel Berg](https://github.com/roosta)
|
||||
- [Summer Pop](https://github.com/guillermoap/Gogh) by [Guillermo Aguirre](https://github.com/guillermoap)
|
||||
- [SynthWave '84 ](https://github.com/robb0wen/synthwave-vscode)
|
||||
@@ -171,6 +173,7 @@ There is no blue without yellow and without orange.
|
||||
|
||||
## Mentions
|
||||
|
||||
- [VSCode Theme](https://marketplace.visualstudio.com/items?itemName=Avetis.gogh-theme)
|
||||
- [Awesome-Shell](https://github.com/alebcay/awesome-shell)
|
||||
- [Hipertextual](https://hipertextual.com/archivo/2014/11/4bit/)
|
||||
- [MuyLinux](https://www.muylinux.com/2015/06/06/ping-91)
|
||||
|
||||
@@ -39,7 +39,7 @@ GLOBAL_VAR_CLEANUP() {
|
||||
unset PROFILE_NAME
|
||||
}
|
||||
|
||||
# Note: Since all scripts gets invoked in a subshell the traps from the parent shell
|
||||
# Note: Since all scripts gets invoked in a subshell the traps from the parent shell
|
||||
# will not get inherited. Hence traps defined in gogh.sh and print-themes.sh will still trigger
|
||||
trap 'GLOBAL_VAR_CLEANUP; trap - EXIT' EXIT HUP INT QUIT PIPE TERM
|
||||
|
||||
@@ -130,6 +130,14 @@ case "${TERMINAL}" in
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
konsole )
|
||||
CFGFILE="${HOME}/.config/konsolerc"
|
||||
if [[ ! -f "${CFGFILE}" ]]; then
|
||||
printf '\n%s\n' "Error: Couldn't find an existing configuration file for Konsole."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -198,6 +206,26 @@ updateFootConfig () {
|
||||
sed -i -r -e "s/^${name}=.+/${name}=${color/\#/}/g" "${config}"
|
||||
}
|
||||
|
||||
createKonsoleEntry () {
|
||||
local name="${1}"
|
||||
local color="${2}"
|
||||
set --
|
||||
set -- $(hexRGBtoDecRGB "${color}")
|
||||
R=${1}; shift; G=${1}; shift; B=${1}; shift
|
||||
|
||||
echo -e "[$name]\nColor=${R},${G},${B}\n"
|
||||
}
|
||||
|
||||
createKonsoleTriple () {
|
||||
local name="${1}"
|
||||
local colorn="${2}" # normal and faint
|
||||
local colori="${3}" # intense
|
||||
|
||||
createKonsoleEntry "${name}" "${colorn}"
|
||||
createKonsoleEntry "${name}Faint" "${colorn}"
|
||||
createKonsoleEntry "${name}Intense" "${colori}"
|
||||
}
|
||||
|
||||
convertNameAndRGBtoITerm() {
|
||||
local name="${1}"
|
||||
local color="${2}"
|
||||
@@ -220,7 +248,7 @@ dlist_append() {
|
||||
local key="${1}"; shift
|
||||
local val="${1}"; shift
|
||||
local entries
|
||||
|
||||
|
||||
entries="$(
|
||||
{
|
||||
"${DCONF}" read "${key}" | tr -d "[]" | tr , "\n" | grep -F -v "${val}"
|
||||
@@ -540,6 +568,57 @@ apply_kitty() {
|
||||
echo "Done - please reopen your kitty terminal to see the changes"
|
||||
}
|
||||
|
||||
apply_konsole() {
|
||||
# |
|
||||
# | Applying values on Konsole
|
||||
# | ===========================================
|
||||
|
||||
PARENT=$(grep -o "^DefaultProfile=.*$" ${CFGFILE} | cut -d '=' -f 2)
|
||||
if [[ -z "${PARENT}" ]]; then
|
||||
PARENT="FALLBACK/"
|
||||
fi
|
||||
|
||||
if [[ -z "${XDG_DATA_HOME:-}" ]]; then
|
||||
KDIR="${HOME}/.local/share/konsole"
|
||||
else
|
||||
KDIR="${XDG_DATA_HOME}/konsole"
|
||||
fi
|
||||
|
||||
KPROFILE="${KDIR}/${PROFILE_NAME}.profile"
|
||||
if [[ -f "${KPROFILE}" ]]; then
|
||||
echo "Profile ${PROFILE_NAME} already exists in Konsole confiuration (${KONSOLE_DIR}); Skipping ..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
touch "${KPROFILE}"
|
||||
echo -e "[Appearance]\nColorScheme=${PROFILE_NAME}\n" >> "${KPROFILE}"
|
||||
echo -e "[General]\nName=${PROFILE_NAME}\nParent=$PARENT" >> "${KPROFILE}"
|
||||
|
||||
KCOLORSCHEME="${KDIR}/${PROFILE_NAME}.colorscheme"
|
||||
if [[ -f "${KCOLORSCHEME}" ]]; then
|
||||
echo "Color Scheme ${PROFILE_NAME} already exists in Konsole confiuration (${KONSOLE_DIR}); Skipping ..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
touch "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Background" "${BACKGROUND_COLOR}" "${BACKGROUND_COLOR}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color0" "${COLOR_01}" "${COLOR_09}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color1" "${COLOR_02}" "${COLOR_10}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color2" "${COLOR_03}" "${COLOR_11}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color3" "${COLOR_04}" "${COLOR_12}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color4" "${COLOR_05}" "${COLOR_13}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color5" "${COLOR_06}" "${COLOR_14}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color6" "${COLOR_07}" "${COLOR_15}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Color7" "${COLOR_08}" "${COLOR_16}" >> "${KCOLORSCHEME}"
|
||||
createKonsoleTriple "Foreground" "${FOREGROUND_COLOR}" "${FOREGROUND_COLOR}" >> "${KCOLORSCHEME}"
|
||||
echo "[General]" >> "${KCOLORSCHEME}"
|
||||
echo "Blur=false" >> "${KCOLORSCHEME}"
|
||||
echo "ColorRandomization=false" >> "${KCOLORSCHEME}"
|
||||
echo "Description=${PROFILE_NAME}" >> "${KCOLORSCHEME}"
|
||||
echo "Opacity=1" >> "${KCOLORSCHEME}"
|
||||
echo "Wallpaper=" >> "${KCOLORSCHEME}"
|
||||
}
|
||||
|
||||
apply_darwin() {
|
||||
# |
|
||||
# | Applying values on iTerm2
|
||||
@@ -579,7 +658,7 @@ apply_gtk() {
|
||||
# | ===========================================
|
||||
|
||||
local legacy="${1:-}"
|
||||
|
||||
|
||||
# This is to avoid doing the profile loop definition twice
|
||||
if [[ -z "${legacy}" ]]; then
|
||||
CONFTOOL="${DCONF} read"
|
||||
@@ -598,7 +677,7 @@ apply_gtk() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Fallback if there is no default profile
|
||||
# Fallback if there is no default profile
|
||||
set -- $(${CONFTOOL} ${PROFILE_LIST_KEY} | tr "[]'," " ")
|
||||
: ${DEFAULT_SLUG:="$1"}
|
||||
|
||||
@@ -898,6 +977,10 @@ case "${TERMINAL}" in
|
||||
apply_kitty
|
||||
;;
|
||||
|
||||
konsole )
|
||||
apply_konsole
|
||||
;;
|
||||
|
||||
* )
|
||||
printf '%s\n' \
|
||||
"Unsupported terminal!" \
|
||||
@@ -913,6 +996,7 @@ case "${TERMINAL}" in
|
||||
" xfce4-terminal" \
|
||||
" foot" \
|
||||
" kitty" \
|
||||
" konsole" \
|
||||
"" \
|
||||
"If you believe you have recieved this message in error," \
|
||||
"try manually setting \`TERMINAL', hint: ps -h -o comm -p \$PPID"
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
gogh.sh
2
gogh.sh
@@ -136,6 +136,7 @@ declare -a THEMES=(
|
||||
'mono-yellow.sh'
|
||||
'monokai-dark.sh'
|
||||
'monokai-pro.sh'
|
||||
'monokai-pro-ristretto.sh'
|
||||
'monokai-soda.sh'
|
||||
'morada.sh'
|
||||
'n0tch2k.sh'
|
||||
@@ -193,6 +194,7 @@ declare -a THEMES=(
|
||||
'solarized-dark-higher-contrast.sh'
|
||||
'solarized-dark.sh'
|
||||
'solarized-light.sh'
|
||||
'sonokai.sh'
|
||||
'spacedust.sh'
|
||||
'spacegray-eighties-dull.sh'
|
||||
'spacegray-eighties.sh'
|
||||
|
||||
25
gogh.yml
Normal file
25
gogh.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
name: Gogh
|
||||
|
||||
color-01: "#243342" # Black (Host)
|
||||
color-02: "#c54133" # Red (Syntax string)
|
||||
color-03: "#27ae60" # Green (Command)
|
||||
color-04: "#edb20a" # Yellow (Command second)
|
||||
color-05: "#2479d0" # Blue (Path)
|
||||
color-06: "#7d3ea0" # Magenta (Syntax var)
|
||||
color-07: "#1d8579" # Cyan (Promp)
|
||||
color-08: "#c9cccd" # Light Gray
|
||||
|
||||
color-09: "#34495E" # Dark Gray
|
||||
color-10: "#E74C3C" # Light Red (Command error)
|
||||
color-11: "#2ECC71" # Light Green (Exec)
|
||||
color-12: "#F1C40F" # Light Yellow
|
||||
color-13: "#3498DB" # Light Blue (Folder)
|
||||
color-14: "#9B59B6" # Light Magenta
|
||||
color-15: "#2AA198" # Light Cyan
|
||||
color-16: "#ECF0F1" # White
|
||||
|
||||
background: "#0D1926" # Background Color
|
||||
foreground: "#ECF0F1" # Foreground Color (Text)
|
||||
|
||||
cursor: "#edb20a" # Cursor
|
||||
55
themes/monokai-pro-ristretto.sh
Executable file
55
themes/monokai-pro-ristretto.sh
Executable file
@@ -0,0 +1,55 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ====================CONFIG THIS =============================== #
|
||||
export COLOR_01="#3E3838" # HOST, Black
|
||||
export COLOR_02="#DF7484" # SYNTAX_STRING, Red
|
||||
export COLOR_03="#BBD87E" # COMMAND, Green
|
||||
export COLOR_04="#EDCE73" # COMMAND_COLOR2, Yellow
|
||||
export COLOR_05="#DC9373" # PATH, Magenta
|
||||
export COLOR_06="#A9AAE9" # SYNTAX_VAR, Blue
|
||||
export COLOR_07="#A4D7CC" # PROMP, Cyan
|
||||
export COLOR_08="#FBF2F3" # White
|
||||
|
||||
export COLOR_09="#70696A" # Bright Black
|
||||
export COLOR_10="#DF7484" # COMMAND_ERROR, Bright Red
|
||||
export COLOR_11="#BBD87E" # EXEC, Bright Green
|
||||
export COLOR_12="#EDCE73" # Bright Yellow
|
||||
export COLOR_13="#DC9373" # FOLDER, Magenta
|
||||
export COLOR_14="#A9AAE9" # Bright Bright Blue
|
||||
export COLOR_15="#A4D7CC" # Bright Cyan
|
||||
export COLOR_16="#FBF2F3" # Bright White
|
||||
|
||||
export BACKGROUND_COLOR="#3E3838" # Background Color
|
||||
export FOREGROUND_COLOR="#FBF2F3" # Text
|
||||
|
||||
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor
|
||||
export PROFILE_NAME="Monokai Pro Ristretto"
|
||||
# =============================================================== #
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# =============================================================== #
|
||||
# | 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
|
||||
56
themes/sonokai.sh
Normal file
56
themes/sonokai.sh
Normal file
@@ -0,0 +1,56 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ====================CONFIG THIS =============================== #
|
||||
# Regular text
|
||||
export COLOR_01="#2C2E34" # Dark Gray
|
||||
export COLOR_02="#FC5D7C" # Sonokai Red
|
||||
export COLOR_03="#9ED072" # Sonokai Green
|
||||
export COLOR_04="#E7C664" # Sonokai Yellow
|
||||
export COLOR_05="#F39660" # Sonokai Orange
|
||||
export COLOR_06="#B39DF3" # Sonokai Magenta
|
||||
export COLOR_07="#76CCE0" # Sonokai Cyan
|
||||
export COLOR_08="#E2E2E3" # Light Gray
|
||||
# Bold text
|
||||
export COLOR_09="#2C2E34" # Dark Gray
|
||||
export COLOR_10="#FC5D7C" # Sonokai Red
|
||||
export COLOR_11="#9ED072" # Sonokai Green
|
||||
export COLOR_12="#E7C664" # Sonokai Yellow
|
||||
export COLOR_13="#F39660" # Sonokai Orange
|
||||
export COLOR_14="#B39DF3" # Sonokai Magenta
|
||||
export COLOR_15="#76CCE0" # Sonokai Cyan
|
||||
export COLOR_16="#E2E2E3" # Light Gray
|
||||
# Text and background
|
||||
export BACKGROUND_COLOR="#2C2E34" # Background Color
|
||||
export FOREGROUND_COLOR="#E2E2E3" # Foreground Color (text)
|
||||
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
|
||||
export PROFILE_NAME="Sonokai"
|
||||
# =============================================================== #
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# =============================================================== #
|
||||
# | 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
|
||||
Reference in New Issue
Block a user