Skip to content

Commit dcdd660

Browse files
committed
Enhance connection feedback with progressive dots animation during station connection attempts
1 parent 0cca16f commit dcdd660

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shelldio.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,13 @@ start_mpv() {
116116
fade_in
117117
return 0
118118
fi
119-
echo -n "."
119+
# Progressive dots animation (1-5 dots cycling)
120+
dots=$((((i - 1) % 5) + 1))
121+
printf "\r%s%*s" "Συνδέεται στον σταθμό$(printf "%*s" $dots "" | tr ' ' '.')" $((5 - dots)) ""
120122
sleep 0.05
121123
done
122124

123125
# Connection failed
124-
echo ""
125126
echo "Αποτυχία σύνδεσης στον σταθμό"
126127
if kill -0 "$mpv_pid" 2>/dev/null; then
127128
kill -9 "$mpv_pid" 2>/dev/null

0 commit comments

Comments
 (0)