add script bin/rainbow64 because it's cool (requires lolcat)

This commit is contained in:
Lexi / Zoe 2021-03-16 10:57:32 +01:00
parent 9b0d9e5744
commit e7b81669dd
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 16 additions and 0 deletions

16
bin/rainbow64 Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
DEFAULT_DELAY=0.033
DELAY=${1:-$DEFAULT_DELAY}
random_chars() {
while true; do
COLS=$(tput cols)
head -c $COLS /dev/urandom | base64 -w 0 | cut -c1-$COLS
sleep $DELAY
done
}
random_chars | lolcat
echo