skeledance/toggle-balada.sh
vini 39bc5d0794 feat: chuva mode — moon, rain, lightning; clean transitions with balada
Rain mode with canvas rain, stormy sky, sun-to-moon transition and
lightning strobe. Mode switching fixed so only one of moon/globe shows:
file pollers are edge-triggered (stale /tmp files no longer fight),
toggle scripts keep the files mutually exclusive, exits fade fast while
entrances stay slow, drawGlobe solely owns globe opacity, and leaving
chuva restores the album-color theme on fog/horizon.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HtPHsTnDcLVSCiF5FGHZj
2026-07-19 10:18:34 -03:00

7 lines
229 B
Bash
Executable file

#!/usr/bin/env bash
if [ "$(cat /tmp/skeledance-balada 2>/dev/null)" = "1" ]; then
echo 0 > /tmp/skeledance-balada
else
echo 1 > /tmp/skeledance-balada
echo 0 > /tmp/skeledance-chuva # modos são mutuamente exclusivos
fi