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
# flip a coin | |
FLIP=$(($(($RANDOM%10))%2)) | |
# if heads, use cowsay to present your splash | |
if [ $FLIP -eq 1 ] | |
then | |
# start with some wisdom | |
fortune -s | cowsay -n | zenity --text-info --title="Your message here" --width 500 --height 500 | |
else | |
# or start with some other msg | |
figlet DAN ROCKS | zenity --text-info --title="Your message here" --width 600 --height 200 | |
fi |
Flip a coin. If heads, allow fortune to generate a quotation and cowsay to present it:
If tails, figlet your 'splash' message:
Discuss
No comments:
Post a Comment