diff options
-rw-r--r-- | .config/env | 1 | ||||
-rwxr-xr-x | .local/bin/brb | 27 | ||||
-rwxr-xr-x | .local/bin/startsoon | 36 |
3 files changed, 48 insertions, 16 deletions
diff --git a/.config/env b/.config/env index e433252..f274912 100644 --- a/.config/env +++ b/.config/env @@ -35,6 +35,7 @@ export XDG_CONFIG_HOME="$HOME"/.config export XDG_CACHE_HOME="$HOME"/.cache export XDG_RUNTIME_DIR="$HOME"/.cache/tmp export XDG_MUSIC_DIR="$HOME"/mu +export XDG_PACKAGE_HOME="$HOME"/.local/packs # Cleanup export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android diff --git a/.local/bin/brb b/.local/bin/brb index cde80bd..1861978 100755 --- a/.local/bin/brb +++ b/.local/bin/brb @@ -2,8 +2,7 @@ randcol() { col=$(shuf -i 1-9 -n1) - wei=$(shuf -i 0-1 -n1) - pri="[${wei};3${col}m" + pri="[1;3${col}m" printf "\033%s" "$pri" } @@ -13,18 +12,26 @@ nocol() { while true; do clear + printf "\n" randcol figlet -s -L -c -t \ - -d "$HOME"/.local/packs/figlet-fonts \ - -f Banner3-D \ + -d "$XDG_PACKAGE_HOME"/stream_figfonts \ + -f banner3_d \ "Joe will be right back" - echo + printf "\n\n" nocol - icat "$HOME"/pics/profile/caco.png -w 80 -x 80 - randcol + icat "$HOME"/pics/profile/caco.png -w 52 -x 82 + printf "\033[1;36m\n" figlet -s -L -c -t \ - -d "$HOME"/.local/packs/figlet-fonts \ - -f broadway_kb \ + -d "$XDG_PACKAGE_HOME"/stream_figfonts \ + -f $(ls "$XDG_PACKAGE_HOME"/stream_figfonts | + tr '.' '\t' | + awk '{print $1}' | + shuf -n 1) \ "please stand by..." - sleep 5 + nocol + cowsay 'Go grab some more coffee!' + sleep 10 done + +# vim: filetype=sh diff --git a/.local/bin/startsoon b/.local/bin/startsoon index fdb0eef..0b4766e 100755 --- a/.local/bin/startsoon +++ b/.local/bin/startsoon @@ -1,11 +1,35 @@ #!/usr/local/bin/dash +randcol() { + col=$(shuf -i 1-9 -n1) + pri="[1;3${col}m" + printf "\033%s" "$pri" +} + +nocol() { + printf "\033[0m" +} + while true; do clear - # figlet -s -L -c -t "Stream starting soon" | lolcat -F 0.05 - figlet -s -L -c -t "Stream starting soon" - echo - # figlet -s -L -c -t "take a coffee!" | lolcat -F 0.05 - figlet -s -L -c -t "take a coffee!" - sleep 15 + 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 82 + 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 |