We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7c7dc9 + 12f7247 commit 60eb118Copy full SHA for 60eb118
scripts/playerctl.sh
@@ -41,6 +41,13 @@ main() {
41
start=0
42
len=${#playerctl_playback}
43
44
+ # previously we have appended a space to playerctl_playback
45
+ # if there is no player, len sees only one space
46
+ # exit the script and output nothing if there is just that space
47
+ if [[ $len == 1 ]]; then
48
+ exit
49
+ fi
50
+
51
scrolling_text=""
52
53
for ((start = 0; start <= len; start++)); do
0 commit comments