term-header/init

29 lines
919 B
Plaintext
Raw Normal View History

2024-01-05 18:29:50 +00:00
TITLE="/home/$USER/.config/zsh/titles/title-$(( $RANDOM % 45 + 1 ))"
ART="/home/$USER/.config/zsh/art/art-$(( $RANDOM % 22 + 1 ))"
print() {
for (( i=0; i<${#1}; i++ )); do
CHAR=${1:$i:2}
if [[ ${CHAR:1:1} = $'\n' ]]; then
printf '%s\n' ${CHAR}
else
CHAR=${1:$i:1}
if [[ ${CHAR} != " " ]]; then
sleep 0.005s
printf '%s' ${GREEN}${CHAR}
else
printf '%s' " "
fi
fi
done
echo
}
print "$(cat ${TITLE})" | lolcat
echo
echo
print "$(cat ${ART})" | lolcat
echo
print "----------------8<------------------------8<------------------[ cut here ]----------------8<------------------------8<------------------" | lolcat
echo