cover-refresh.sh 346 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. duration=20
  4. img=/tmp/cover.png
  5. display_cover(){
  6. # kitty +kitten icat "$img" || chafa "$img"
  7. chafa "$img"
  8. # [[ "$(cat /proc/$PPID/comm)" == 'kitty' ]] && kitty +kitten icat "$img"
  9. }
  10. while :; do
  11. music-cover-generate.sh
  12. clear
  13. display_cover
  14. sleep $duration
  15. done