2019-02-17 06:39:52 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
local i
|
|
|
|
local gradient=(ffff5f 7ad767 66b097 5e7388 534d61 3a3338 121212)
|
|
|
|
local fg_gradient=(000000 000000 000000 000000 000000 ffffff ffffff)
|
|
|
|
local j=0
|
|
|
|
for i in ${WISH_PLUGINS[@]}; do
|
2019-12-29 16:57:56 +01:00
|
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
2019-09-06 18:54:35 +02:00
|
|
|
eval WISH_${i^^}_BG=${gradient[$j]}
|
|
|
|
eval WISH_${i^^}_FG=${fg_gradient[$j]}
|
2019-02-17 06:39:52 +01:00
|
|
|
((j++))
|
|
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
|
|
j=0
|
|
|
|
fi
|
|
|
|
done
|
2019-12-15 17:30:37 +01:00
|
|
|
|
|
|
|
j=0
|
2019-12-29 16:57:56 +01:00
|
|
|
for ((idx=$((${#WISH_RIGHT_PLUGINS[@]} - 1)); idx >= 0; idx--)); do
|
|
|
|
i=${WISH_RIGHT_PLUGINS[$idx]}
|
|
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
|
|
|
eval WISH_${i^^}_BG=${gradient[$j]}
|
|
|
|
eval WISH_${i^^}_FG=${fg_gradient[$j]}
|
2019-12-15 17:30:37 +01:00
|
|
|
((j++))
|
|
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
|
|
j=0
|
|
|
|
fi
|
|
|
|
done
|