mirror of https://gitlab.com/ceda_ei/wish
28 lines
600 B
Bash
28 lines
600 B
Bash
#!/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
|
|
[[ $i =~ newline$ ]] && j=0 && continue
|
|
declare WISH_${i^^}_BG=-1
|
|
declare 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
|
|
declare WISH_${i^^}_BG=-1
|
|
declare WISH_${i^^}_FG=${gradient[$j]}
|
|
((j++))
|
|
if [[ $j -eq ${#gradient[@]} ]]; then
|
|
j=0
|
|
fi
|
|
done
|