Created
September 18, 2022 20:03
-
-
Save T3sT3ro/3ccb2ba23ab261254765459a00be1a05 to your computer and use it in GitHub Desktop.
skrypt na twistera do basha - działa fajnei w termuxie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# jak podasz pierwszy argument zawierący 'air' to będzie z powietrzem (fiolet) | |
BODY_T=('LEWA STOPA' 'PRAWA STOPA' 'LEWA RĘKA' 'PRAWA RĘKA') | |
COLOR_T=(31 32 33 36) | |
if [[ "$1" =~ .*air.* ]]; then | |
echo ! GRAMY Z POWIETRZEM \(fioletowy\) ! | |
COLOR_T+=(35); # filoetowy do powietrza | |
fi | |
echo "klikaj ENTER żeby generować kolory, CTRL+D żeby skończyć" | |
while read; do | |
c=${COLOR_T[$(($RANDOM % ${#COLOR_T[@]}))]} | |
b=${BODY_T[$(($RANDOM % 4))]} | |
printf "\e[${c};7;1m%20s\r%15s\e[0m\r\e[20C" "" "$b" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment