2019-07-18 13:46:19 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
WISH_POWERLINE=0
|
|
|
|
local i
|
|
|
|
local gradient=(e7c547 c0e551 82e35a 62e177 6bdfb3 73d4dd 7aa6da)
|
|
|
|
local j=0
|
|
|
|
for i in ${WISH_PLUGINS[@]}; do
|
2019-12-29 17:02:03 +01:00
|
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
|
|
|
eval WISH_${i^^}_BG=-1
|
|
|
|
eval WISH_${i^^}_FG=${gradient[$j]}
|
|
|
|
((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
|
2019-09-06 18:54:35 +02:00
|
|
|
eval WISH_${i^^}_BG=-1
|
|
|
|
eval WISH_${i^^}_FG=${gradient[$j]}
|
2019-07-18 13:46:19 +02:00
|
|
|
((j++))
|
|
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
|
|
j=0
|
|
|
|
fi
|
|
|
|
done
|