Turn dazzle into a full-blown screensaver

This commit is contained in:
David Heinemeier Hansson
2025-07-26 21:53:13 -04:00
parent ffd136cdc6
commit 008fab9df3
4 changed files with 11 additions and 0 deletions

9
bin/omarchy-cmd-screensaver Executable file
View File

@ -0,0 +1,9 @@
#!/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"
clear
done