1234567891011121314151617181920212223242526 |
- #!/bin/bash
- for command in figlet toilet; do
- for font in /usr/share/figlet/*lf /usr/share/figlet/fonts/*lf; do
- #~ clear
- echo $command $font
- $command -t -f "$(basename "${font%.*}")" "$command: $(date +"%a, %-d.%-m. %R")"\
- && read -n1 -p "Add font? (y/N) " x
- [[ "x$x" == "xy" ]] && goodfonts="$font
- $goodfonts"
- done
- #~ for font in /usr/share/figlet/fonts/*lf; do
- #~ clear
- #~ echo $font
- #~ $command -t -f "$(basename "$font")" "$command: $(date +"%a, %-d.%-m. %R")"
- #~ read -n1 -p "Add font? (y/N) " x
- #~ [[ "x$x" == "xy" ]] && echo -n "$font " >> goodfigletfonts
- #~ done
- done
- clear
- echo "Fonts chosen:
- $goodfonts"
|