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

229 lines
4.7 KiB
Bash
Raw Normal View History

2017-07-04 23:26:10 +03:00
#!/usr/bin/env bash
declare -a THEMES=(
2017-07-08 01:51:58 +03:00
'3024-day.sh'
'3024-night.sh'
2017-07-04 23:26:10 +03:00
'aci.sh'
'aco.sh'
2017-07-08 01:51:58 +03:00
'adventuretime.sh'
'afterglow.sh'
'alien-blood.sh'
'argonaut.sh'
'arthur.sh'
'atom.sh'
2017-07-04 23:26:10 +03:00
'azu.sh'
2017-07-08 01:51:58 +03:00
'belafonte-day.sh'
'belafonte-night.sh'
2017-07-04 23:26:10 +03:00
'bim.sh'
2017-07-08 01:51:58 +03:00
'birds-of-paradise.sh'
'blazer.sh'
'borland.sh'
'broadcast.sh'
'brogrammer.sh'
'c64.sh'
2017-07-04 23:26:10 +03:00
'cai.sh'
2017-07-08 01:51:58 +03:00
'chalkboard.sh'
2017-07-04 23:26:10 +03:00
'chalk.sh'
2017-07-08 01:51:58 +03:00
'ciapre.sh'
'clrs.sh'
'cobalt2.sh'
'cobalt-neon.sh'
'crayon-pony-fish.sh'
'dark-pastel.sh'
'darkside.sh'
'desert.sh'
'dimmed-monokai.sh'
2017-07-04 23:26:10 +03:00
'dracula.sh'
2017-07-08 01:51:58 +03:00
'earthsong.sh'
'elemental.sh'
2017-07-04 23:26:10 +03:00
'elementary.sh'
'elic.sh'
'elio.sh'
2017-07-08 01:51:58 +03:00
'espresso-libre.sh'
'espresso.sh'
'fishtank.sh'
'flatland.sh'
2017-07-04 23:26:10 +03:00
'flat.sh'
'freya.sh'
2017-07-08 01:51:58 +03:00
'frontend-delight.sh'
'frontend-fun-forrest.sh'
'frontend-galaxy.sh'
'github.sh'
'grape.sh'
'grass.sh'
2017-07-04 23:26:10 +03:00
'gruvbox-dark.sh'
2017-07-08 01:51:58 +03:00
'gruvbox.sh'
'hardcore.sh'
'harper.sh'
2017-07-04 23:26:10 +03:00
'hemisu-dark.sh'
'hemisu-light.sh'
2017-07-08 01:51:58 +03:00
'highway.sh'
'hipster-green.sh'
'homebrew.sh'
'hurtado.sh'
2017-07-04 23:26:10 +03:00
'hybrid.sh'
2017-07-08 01:51:58 +03:00
'ic-green-ppl.sh'
'ic-orange-ppl.sh'
'idle-toes.sh'
2017-07-04 23:26:10 +03:00
'ir-black.sh'
2017-07-08 01:51:58 +03:00
'jackie-brown.sh'
'japanesque.sh'
'jellybeans.sh'
2017-07-04 23:26:10 +03:00
'jup.sh'
2017-07-08 01:51:58 +03:00
'kibble.sh'
'later-this-evening.sh'
'lavandula.sh'
'liquid-carbon.sh'
'liquid-carbon-transparent.sh'
'man-page.sh'
2017-07-04 23:26:10 +03:00
'mar.sh'
'material.sh'
2017-07-08 01:51:58 +03:00
'mathias.sh'
'medallion.sh'
'misterioso.sh'
2017-07-04 23:26:10 +03:00
'miu.sh'
2017-07-08 01:51:58 +03:00
'molokai.sh'
'monalisa.sh'
2017-07-04 23:26:10 +03:00
'monokai-dark.sh'
2017-07-08 01:51:58 +03:00
'monokai-soda.sh'
'n0tch2k.sh'
'neopolitan.sh'
2017-07-04 23:26:10 +03:00
'nep.sh'
2017-07-08 01:51:58 +03:00
'neutron.sh'
'nightlion-v1.sh'
'nightlion-v2.sh'
2017-07-04 23:26:10 +03:00
'nord-light.sh'
'nord.sh'
2017-07-08 01:51:58 +03:00
'novel.sh'
'obsidian.sh'
2017-07-04 23:26:10 +03:00
'ocean-dark.sh'
2017-07-08 01:51:58 +03:00
'oceanic-next.sh'
'ocean.sh'
'ollie.sh'
2017-07-04 23:26:10 +03:00
'one-dark.sh'
'one-light.sh'
'pali.sh'
2017-07-08 01:51:58 +03:00
'paraiso-dark.sh'
'paul-millr.sh'
'pencil-dark.sh'
'pencil-light.sh'
2017-07-04 23:26:10 +03:00
'peppermint.sh'
2017-07-08 01:51:58 +03:00
'pnevma.sh'
'pro.sh'
'red-alert.sh'
'red-sands.sh'
'rippedcasts.sh'
'royal.sh'
2017-07-04 23:26:10 +03:00
'sat.sh'
2017-07-08 01:51:58 +03:00
'seafoam-pastel.sh'
'sea-shells.sh'
'seti.sh'
'shaman.sh'
2017-07-04 23:26:10 +03:00
'shel.sh'
2017-07-08 01:51:58 +03:00
'slate.sh'
2017-07-04 23:26:10 +03:00
'smyck.sh'
2017-07-08 01:51:58 +03:00
'soft-server.sh'
'solarized-darcula.sh'
'solarized-dark-higher-contrast.sh'
2017-07-04 23:26:10 +03:00
'solarized-dark.sh'
'solarized-light.sh'
2017-07-08 01:51:58 +03:00
'spacedust.sh'
'spacegray-eighties-dull.sh'
'spacegray-eighties.sh'
'spacegray.sh'
'spring.sh'
'square.sh'
'sundried.sh'
'symphonic.sh'
'teerb.sh'
'terminal-basic.sh'
'terminix-dark.sh'
'thayer-bright.sh'
2017-07-04 23:26:10 +03:00
'tin.sh'
2017-07-08 01:51:58 +03:00
'tommorow-night.sh'
2017-07-04 23:26:10 +03:00
'tomorrow-night-blue.sh'
'tomorrow-night-bright.sh'
'tomorrow-night-eighties.sh'
'tomorrow-night.sh'
'tomorrow.sh'
2017-07-08 01:51:58 +03:00
'toy-chest.sh'
'treehouse.sh'
'twilight.sh'
2017-07-04 23:26:10 +03:00
'ura.sh'
2017-07-08 01:51:58 +03:00
'urple.sh'
2017-07-04 23:26:10 +03:00
'vag.sh'
2017-07-08 01:51:58 +03:00
'vaughn.sh'
'vibrant-ink.sh'
'warm-neon.sh'
'wez.sh'
'wild-cherry.sh'
'wombat.sh'
'wryan.sh'
'zenburn.sh'
2017-07-04 23:26:10 +03:00
)
set_gogh () {
string=$1
string_r="${string%???}"
string_s=${string_r//\./_}
result="${string_s^}"
export {PROFILE_NAME,PROFILE_SLUG}=$result && wget -O gogh https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/$1 && chmod +x gogh && ./gogh && rm gogh
}
### Get length of an array
ARRAYLENGTH=${#THEMES[@]}
NUM=1
# |
# | ::::::: Print Colors
# |
echo -e "
Gogh
\e[0;30m█████\\e[0m\e[0;31m█████\\e[0m\e[0;32m█████\\e[0m\e[0;33m█████\\e[0m\e[0;34m█████\\e[0m\e[0;35m█████\\e[0m\e[0;36m█████\\e[0m\e[0;37m█████\\e[0m
\e[0m\e[1;30m█████\\e[0m\e[1;31m█████\\e[0m\e[1;32m█████\\e[0m\e[1;33m█████\\e[0m\e[1;34m█████\\e[0m\e[1;35m█████\\e[0m\e[1;36m█████\\e[0m\e[1;37m█████\\e[0m"
# |
# | ::::::: Print Themes
# |
echo -e "
Themes:
(\\e[0m\e[0;34m 00 \\e[0m\e[0m) EXIT
"
for TH in "${THEMES[@]}"; do
KEY=$(printf "%02d" $NUM)
FILENAME=${TH::-3}
FILENAME_SPACE=${FILENAME//-/ }
echo -e " (\\e[0m\e[0;34m $KEY \\e[0m\e[0m) ${FILENAME_SPACE^}"
((NUM++))
done
# |
# | ::::::: Select Option
# |
echo -e "Usage : Enter Desired Themes Numbers (\\e[0m\e[0;34mOPTIONS\\e[0m\e[0m) Separated By A Blank Space"
read -p 'Enter OPTION(S) : ' -a OPTION
# |
# | ::::::: Apply Theme
# |
for OP in "${OPTION[@]}"; do
2017-07-12 18:34:21 +03:00
if (( OP < ARRAYLENGTH )); then
2017-07-04 23:26:10 +03:00
echo "Theme: ${FILENAME_SPACE^}"
SET_THEME="${THEMES[(($OP-1))]}"
set_gogh "${SET_THEME}"
exit 1
else
echo -e "\\e[0m\e[0;31m ~ INVALID OPTION! ~\\e[0m\e[0m"
exit 1
fi
done