2019-03-02 08:08:54 +01:00
|
|
|
#!/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
|
2019-12-29 17:02:03 +01:00
|
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
2024-11-07 12:48:59 +01:00
|
|
|
declare WISH_${i^^}_BG=${gradient[$j]}
|
|
|
|
declare WISH_${i^^}_FG=${fg_gradient[$j]}
|
2019-12-29 17:02:03 +01:00
|
|
|
((j++))
|
|
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
|
|
j=0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
j=0
|
|
|
|
for ((idx=$((${#WISH_RIGHT_PLUGINS[@]} - 1)); idx >= 0; idx--)); do
|
|
|
|
i=${WISH_RIGHT_PLUGINS[$idx]}
|
|
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
2024-11-07 12:48:59 +01:00
|
|
|
declare WISH_${i^^}_BG=${gradient[$j]}
|
|
|
|
declare WISH_${i^^}_FG=${fg_gradient[$j]}
|
2019-03-02 08:08:54 +01:00
|
|
|
((j++))
|
|
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
|
|
j=0
|
|
|
|
fi
|
|
|
|
done
|