-
Notifications
You must be signed in to change notification settings - Fork 0
/
pride.sh
executable file
Β·44 lines (35 loc) Β· 899 Bytes
/
pride.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
if [ -f "$HOME/.config/pride-files/definitions.config" ]; then
. $HOME/.config/pride-files/definitions.config
else
. /usr/local/bin/pride-files/definitions.config
fi
if [ -f "$HOME/.config/pride-files/pride.config" ]; then
. $HOME/.config/pride-files/pride.config
else
. /usr/local/bin/pride-files/pride.config
fi
minSize=10
goalWidth="$(($width/$minSize))"
printWidth=${goalWidth%.*}
count=${#colors[@]}
colorIndex=0
for size in "${sizes[@]}"
do
for y in $(seq 1 $size)
do
color=${colors[$colorIndex]}
background=${backgroundcolors[$colorIndex]}
line=''
for x in $(seq 1 $printWidth)
do
for z in $(seq 1 $minSize)
do
line=$line$char
done
done
printf ${background}${color}${line} 0;
echo "${RESET}";
done
colorIndex="$(($colorIndex+1))"
done