add \n to start of joke for smaller font but not for the bigger
This commit is contained in:
parent
4e581d71f1
commit
0afb9ae4b0
3
dash.sh
3
dash.sh
@ -8,10 +8,11 @@ time_font=`echo "roman poison colossal" | sed 's/ /\n/g' | sort -R | head -1`
|
|||||||
|
|
||||||
if [ $joke_len -gt 40 ]; then
|
if [ $joke_len -gt 40 ]; then
|
||||||
joke_font=thick
|
joke_font=thick
|
||||||
|
joke="\n$joke"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo "$date_font $time_font $joke_font"
|
#echo "$date_font $time_font $joke_font"
|
||||||
date "+%a %b %e" | figlet -Wnctf "./fonts/$date_font"
|
date "+%a %b %e" | figlet -Wnctf "./fonts/$date_font"
|
||||||
date "+%l:%M %p" | figlet -Wnctf "./fonts/$time_font"
|
date "+%l:%M %p" | figlet -Wnctf "./fonts/$time_font"
|
||||||
echo -e "\n$joke" | figlet -nctf "./fonts/$joke_font"
|
echo -e "$joke" | figlet -nctf "./fonts/$joke_font"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user