summaryrefslogtreecommitdiffstats
path: root/.local/bin/startsoon
blob: 01bb32e2e85cb3e91a50de5f6e37e3b8a98e8e95 (plain)
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
#!/bin/sh

randcol() {
	col=$(shuf -i 1-9 -n1)
	pri="[1;3${col}m"
	printf "\033%s" "$pri"
}

nocol() {
	printf "\033[0m"
}

while true; do
	clear
	printf "\n"
	randcol
	figlet -s -L -c -t \
		-d "$XDG_PACKAGE_HOME"/stream_figfonts \
		-f banner3_d \
		"Stream starting soon"
	printf "\n\n"
	nocol
	icat "$HOME"/pics/profile/caco.png -w 52 -x 62 -m 24bit
	printf "\033[1;36m\n"
	figlet -s -L -c -t \
		-d "$XDG_PACKAGE_HOME"/stream_figfonts \
		-f $(ls "$XDG_PACKAGE_HOME"/stream_figfonts |
			tr '.' '\t' |
			awk '{print $1}' |
			shuf -n 1) \
		"Take a coffee!"
	sleep 10
done

# vim: filetype=sh