Prepare for tte's imminent return!

This commit is contained in:
David Heinemeier Hansson 2025-08-24 22:24:42 +02:00
parent f14810e80d
commit 599b58f9a1
2 changed files with 17 additions and 14 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash
if command -v tte &>/dev/null; then
while true; do
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
tte -i ~/.config/omarchy/branding/screensaver.txt \
@ -15,4 +14,3 @@ if command -v tte &>/dev/null; then
fi
done
done
fi

View File

@ -1,5 +1,10 @@
#!/bin/bash
# Exit early if we don't have the tte show
if ! command -v tte &>/dev/null; then
exit 0
fi
# Exit early if screensave is already running
pgrep -f "alacritty --class Screensaver" && exit 0