mirror of https://gitlab.com/ceda_ei/wish
16 lines
402 B
Bash
16 lines
402 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
local i
|
||
|
local gradient=(226 118 37 66 60 237 233)
|
||
|
local fg_gradient=(16 16 16 16 16 15 15)
|
||
|
local j=0
|
||
|
for i in ${WISH_PLUGINS[@]}; do
|
||
|
[[ $i == "newline" ]] && j=0 && continue
|
||
|
eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_BG=${gradient[$j]}
|
||
|
eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_FG=${fg_gradient[$j]}
|
||
|
((j++))
|
||
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
||
|
j=0
|
||
|
fi
|
||
|
done
|