Skip to content

Commit

Permalink
Removed useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkUpGames committed Jul 15, 2024
1 parent 6d7809e commit dae8e6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/playerctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ main() {
playerctl_playback=$(playerctl metadata --format "${FORMAT}")
playerctl_playback="${playerctl_playback} "

# Determine the length of the terminal window (not implemented here)
# Adjust width of string
terminal_width=25

Expand All @@ -45,13 +44,11 @@ main() {
scrolling_text=""

for ((start = 0; start <= len; start++)); do
# Slice the string starting from 'start' index and display 'terminal_width' characters
scrolling_text=$(slice_loop "$playerctl_playback" "$start" "$terminal_width")
echo -ne "\r"
echo "$scrolling_text "
echo -ne "\r"

# Sleep for RATE seconds before updating the display (adjust RATE as needed)
sleep 0.08
done

Expand Down

0 comments on commit dae8e6a

Please sign in to comment.