switch to using rose-pine
parent
b66d72f186
commit
9b827c199d
23
generate.sh
23
generate.sh
|
@ -1,31 +1,34 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
ProgName="$(basename -- "$0")"
|
ProgName="$(basename -- "$0")"
|
||||||
ScriptDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
ScriptDir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||||
|
|
||||||
sub_help() {
|
sub_help() {
|
||||||
echo "Usage: $ProgName <theme>"
|
echo "Usage: $ProgName <theme>"
|
||||||
echo "Available themes:"
|
echo "Available themes:"
|
||||||
echo " mocha"
|
echo " default"
|
||||||
echo " macchiato"
|
echo " moon"
|
||||||
echo " latte"
|
echo " dawn"
|
||||||
echo " frappe"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
subcommand="$1"
|
subcommand="$1"
|
||||||
case "$subcommand" in
|
case "$subcommand" in
|
||||||
"" | "-h" | "--help")
|
"-h" | "--help")
|
||||||
sub_help
|
sub_help
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
mocha | macchiato | latte | frappe)
|
"" | default | moon | dawn)
|
||||||
. "${ScriptDir}/src/${subcommand}.sh" || exit 1
|
if [ "$subcommand" == "" ] || [ "$subcommand" == "default" ]; then
|
||||||
|
. "${ScriptDir}/themes/rose-pine.sh" || exit 1
|
||||||
|
else
|
||||||
|
. "${ScriptDir}/themes/rose-pine-${subcommand}.sh" || exit 1
|
||||||
|
fi
|
||||||
default_red=()
|
default_red=()
|
||||||
default_grn=()
|
default_grn=()
|
||||||
default_blu=()
|
default_blu=()
|
||||||
IFS=','
|
IFS=','
|
||||||
for i in "${colors[@]}"; do
|
for i in "${colors[@]}"; do
|
||||||
read -r r g b <<< "$i"
|
read -r r g b <<<"$i"
|
||||||
default_red+=("$r")
|
default_red+=("$r")
|
||||||
default_grn+=("$g")
|
default_grn+=("$g")
|
||||||
default_blu+=("$b")
|
default_blu+=("$b")
|
||||||
|
@ -33,7 +36,7 @@ case "$subcommand" in
|
||||||
echo "vt.default_red=${default_red[*]} vt.default_grn=${default_grn[*]} vt.default_blu=${default_blu[*]}"
|
echo "vt.default_red=${default_red[*]} vt.default_grn=${default_grn[*]} vt.default_blu=${default_blu[*]}"
|
||||||
unset IFS
|
unset IFS
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: '$subcommand' is not a known theme." >&2
|
echo "Error: '$subcommand' is not a known theme." >&2
|
||||||
echo "Run '$ProgName --help' for help." >&2
|
echo "Run '$ProgName --help' for help." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rosewater=242,213,207
|
|
||||||
flamingo=238,190,190
|
|
||||||
pink=244,184,228
|
|
||||||
mauve=202,158,230
|
|
||||||
red=231,130,132
|
|
||||||
maroon=234,153,156
|
|
||||||
peach=239,159,118
|
|
||||||
yellow=229,200,144
|
|
||||||
green=166,209,137
|
|
||||||
teal=129,200,190
|
|
||||||
sky=153,209,219
|
|
||||||
sapphire=133,193,220
|
|
||||||
blue=140,170,238
|
|
||||||
lavender=186,187,241
|
|
||||||
text=198,208,245
|
|
||||||
subtext1=181,191,226
|
|
||||||
subtext0=165,173,206
|
|
||||||
overlay2=148,156,187
|
|
||||||
overlay1=131,139,167
|
|
||||||
overlay0=115,121,148
|
|
||||||
surface2=98,104,128
|
|
||||||
surface1=81,87,109
|
|
||||||
surface0=65,69,89
|
|
||||||
base=48,52,70
|
|
||||||
mantle=41,44,60
|
|
||||||
crust=35,38,52
|
|
||||||
colors=("$base" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext1" "$surface2" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext0")
|
|
28
src/latte.sh
28
src/latte.sh
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rosewater=220,138,120
|
|
||||||
flamingo=221,120,120
|
|
||||||
pink=234,118,203
|
|
||||||
mauve=136,57,239
|
|
||||||
red=210,15,57
|
|
||||||
maroon=230,69,83
|
|
||||||
peach=254,100,11
|
|
||||||
yellow=223,142,29
|
|
||||||
green=64,160,43
|
|
||||||
teal=23,146,153
|
|
||||||
sky=4,165,229
|
|
||||||
sapphire=32,159,181
|
|
||||||
blue=30,102,245
|
|
||||||
lavender=114,135,253
|
|
||||||
text=76,79,105
|
|
||||||
subtext1=92,95,119
|
|
||||||
subtext0=108,111,133
|
|
||||||
overlay2=124,127,147
|
|
||||||
overlay1=140,143,161
|
|
||||||
overlay0=156,160,176
|
|
||||||
surface2=172,176,190
|
|
||||||
surface1=188,192,204
|
|
||||||
surface0=204,208,218
|
|
||||||
base=239,241,245
|
|
||||||
mantle=230,233,239
|
|
||||||
crust=220,224,232
|
|
||||||
colors=("$base" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext0" "$surface2" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$text")
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rosewater=244,219,214
|
|
||||||
flamingo=240,198,198
|
|
||||||
pink=245,189,230
|
|
||||||
mauve=198,160,246
|
|
||||||
red=237,135,150
|
|
||||||
maroon=238,153,160
|
|
||||||
peach=245,169,127
|
|
||||||
yellow=238,212,159
|
|
||||||
green=166,218,149
|
|
||||||
teal=139,213,202
|
|
||||||
sky=145,215,227
|
|
||||||
sapphire=125,196,228
|
|
||||||
blue=138,173,244
|
|
||||||
lavender=183,189,248
|
|
||||||
text=202,211,245
|
|
||||||
subtext1=184,192,224
|
|
||||||
subtext0=165,173,203
|
|
||||||
overlay2=147,154,183
|
|
||||||
overlay1=128,135,162
|
|
||||||
overlay0=110,115,141
|
|
||||||
surface2=91,96,120
|
|
||||||
surface1=73,77,100
|
|
||||||
surface0=54,58,79
|
|
||||||
base=36,39,58
|
|
||||||
mantle=30,32,48
|
|
||||||
crust=24,25,38
|
|
||||||
colors=("$base" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext1" "$surface2" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext0")
|
|
28
src/mocha.sh
28
src/mocha.sh
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rosewater=245,224,220
|
|
||||||
flamingo=242,205,205
|
|
||||||
pink=245,194,231
|
|
||||||
mauve=203,166,247
|
|
||||||
red=243,139,168
|
|
||||||
maroon=235,160,172
|
|
||||||
peach=250,179,135
|
|
||||||
yellow=249,226,175
|
|
||||||
green=166,227,161
|
|
||||||
teal=148,226,213
|
|
||||||
sky=137,220,235
|
|
||||||
sapphire=116,199,236
|
|
||||||
blue=137,180,250
|
|
||||||
lavender=180,190,254
|
|
||||||
text=205,214,244
|
|
||||||
subtext1=186,194,222
|
|
||||||
subtext0=166,173,200
|
|
||||||
overlay2=147,153,178
|
|
||||||
overlay1=127,132,156
|
|
||||||
overlay0=108,112,134
|
|
||||||
surface2=88,91,112
|
|
||||||
surface1=69,71,90
|
|
||||||
surface0=49,50,68
|
|
||||||
base=30,30,46
|
|
||||||
mantle=24,24,37
|
|
||||||
crust=17,17,27
|
|
||||||
colors=("$base" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext1" "$surface2" "$red" "$green" "$yellow" "$blue" "$pink" "$teal" "$subtext0")
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
zero=$base
|
||||||
|
one=$love
|
||||||
|
two=$foam
|
||||||
|
three=$gold
|
||||||
|
four=$pine
|
||||||
|
five=$iris
|
||||||
|
six=$rose
|
||||||
|
seven=$text
|
||||||
|
eight=$overlay
|
||||||
|
nine=$love
|
||||||
|
ten=$foam
|
||||||
|
eleven=$gold
|
||||||
|
twelve=$pine
|
||||||
|
thirteen=$iris
|
||||||
|
fourteen=$rose
|
||||||
|
fifteen=$text
|
||||||
|
colors=("$zero" "$one" "$two" "$three" "$four" "$five" "$six" "$seven" "$eight" "$nine" "$ten" "$eleven" "$twelve" "$thirteen" "$fourteen" "$fifteen")
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
zero=250,244,237
|
||||||
|
one=180,99,122
|
||||||
|
two=86,148,159
|
||||||
|
three=234,157,52
|
||||||
|
four=40,105,131
|
||||||
|
five=144,122,169
|
||||||
|
six=215,130,126
|
||||||
|
seven=87,82,121
|
||||||
|
eight=242,233,222
|
||||||
|
nine=180,99,122
|
||||||
|
ten=86,148,159
|
||||||
|
eleven=234,157,52
|
||||||
|
twelve=40,105,131
|
||||||
|
thirteen=144,122,169
|
||||||
|
fourteen=215,130,126
|
||||||
|
fifteen=87,82,121
|
||||||
|
colors=("$zero" "$one" "$two" "$three" "$four" "$five" "$six" "$seven" "$eight" "$nine" "$ten" "$eleven" "$twelve" "$thirteen" "$fourteen" "$fifteen")
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
zero=35,33,54
|
||||||
|
one=235,111,146
|
||||||
|
two=156,207,216
|
||||||
|
three=246,193,119
|
||||||
|
four=62,143,176
|
||||||
|
five=196,167,231
|
||||||
|
six=234,154,151
|
||||||
|
seven=224,222,244
|
||||||
|
eight=57,53,82
|
||||||
|
nine=235,111,146
|
||||||
|
ten=156,207,216
|
||||||
|
eleven=246,193,119
|
||||||
|
twelve=62,143,176
|
||||||
|
thirteen=196,167,231
|
||||||
|
fourteen=234,154,151
|
||||||
|
fifteen=224,222,244
|
||||||
|
colors=("$zero" "$one" "$two" "$three" "$four" "$five" "$six" "$seven" "$eight" "$nine" "$ten" "$eleven" "$twelve" "$thirteen" "$fourteen" "$fifteen")
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
zero=25,23,36
|
||||||
|
one=235,111,146
|
||||||
|
two=156,207,216
|
||||||
|
three=246,193,119
|
||||||
|
four=49,116,143
|
||||||
|
five=196,167,231
|
||||||
|
six=235,188,186
|
||||||
|
seven=224,222,244
|
||||||
|
eight=38,35,58
|
||||||
|
nine=235,111,146
|
||||||
|
ten=156,207,216
|
||||||
|
eleven=246,193,119
|
||||||
|
twelve=49,116,143
|
||||||
|
thirteen=196,167,231
|
||||||
|
fourteen=235,188,186
|
||||||
|
fifteen=224,222,244
|
||||||
|
colors=("$zero" "$one" "$two" "$three" "$four" "$five" "$six" "$seven" "$eight" "$nine" "$ten" "$eleven" "$twelve" "$thirteen" "$fourteen" "$fifteen")
|
Loading…
Reference in New Issue