#!/bin/bash

trap "exit" SIGINT

while true; do
  effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
  tte -i ~/.local/share/omarchy/logo.txt --frame-rate 240 --canvas-width 0 --canvas-height 0 --anchor-canvas c --anchor-text c "$effect"
done
