fonttest 653 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. for command in figlet toilet; do
  3. for font in /usr/share/figlet/*lf /usr/share/figlet/fonts/*lf; do
  4. #~ clear
  5. echo $command $font
  6. $command -t -f "$(basename "${font%.*}")" "$command: $(date +"%a, %-d.%-m. %R")"\
  7. && read -n1 -p "Add font? (y/N) " x
  8. [[ "x$x" == "xy" ]] && goodfonts="$font
  9. $goodfonts"
  10. done
  11. #~ for font in /usr/share/figlet/fonts/*lf; do
  12. #~ clear
  13. #~ echo $font
  14. #~ $command -t -f "$(basename "$font")" "$command: $(date +"%a, %-d.%-m. %R")"
  15. #~ read -n1 -p "Add font? (y/N) " x
  16. #~ [[ "x$x" == "xy" ]] && echo -n "$font " >> goodfigletfonts
  17. #~ done
  18. done
  19. clear
  20. echo "Fonts chosen:
  21. $goodfonts"