~bronikowski/focu.sh

focu.sh/s.sh -rw-r--r-- 960 bytes
8a557374Emil Oppeln-Bronikowski It does not get any better 3 months ago
                                                                                
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
st=("E" "_" "N" "_" "D" "__" "O" "_" "F" "__" "T" "_" "R" "_" "A" "_" "N" "_" "S" "_" "M" "_" "I" "_" "S" "_" "S" "_" "I" "_" "O" "_" "N")
clear
motrix() {
	for i in ${st[@]}; do
		rnd=$((1 + $RANDOM % 10))
		if [ $i = "_" ]; then
			printf " "
			continue
		fi
		if [ $i = "__" ]; then
			printf "  "
			continue
		fi
		if [ $RANDOM -gt 16383 ]; then
			echo -ne "$color_a$i"
		else
			echo -ne "$color_b$i"
		fi
		printf "\u001b[0m"
		d=`echo "scale=2 ; $rnd / 80" | bc`
		sleep $d
	done
}
tput cup 0 0
color_a="$(tput dim)$(tput setaf 7)"
color_b="$(tput setaf 8)"
motrix
tput cup 0 0
color_a="$(tput dim)$(tput setaf 2)"
color_b="$(tput bold)$(tput setaf 2)"
motrix
tput cup 0 0
color_a="$(tput bold)$(tput setaf 2)"
color_b="$(tput bold)$(tput setaf 2)"
motrix
tput cup 0 0
color_a="$(tput bold)$(tput setaf 7)"
color_b="$(tput bold)$(tput setaf 0)"
motrix
tput cup 0 0
color_a="$(tput bold) $(tput setaf 0)"
color_b="$(tput bold) $(tput setaf 0)"
motrix