diff --git a/stow/.config/sketchybar/plugins/music.sh b/stow/.config/sketchybar/plugins/music.sh index 1d4198a..0324fb0 100755 --- a/stow/.config/sketchybar/plugins/music.sh +++ b/stow/.config/sketchybar/plugins/music.sh @@ -1,7 +1,7 @@ #!/bin/sh # sketchybar doesn't like it when the line doesn't end with a carriage return -SONG="$(osascript -e 'tell application "Music" to if player state is playing then artist of current track & " - " & name of current track' | head -c 65 && echo '\r')" +SONG="$(osascript -e 'tell application "Music" to if player state is playing then artist of current track & " - " & name of current track')" if [[ "$(echo $SONG | wc -w | sed 's/ //g')" != "0" ]]; then sketchybar --set "$NAME" label="${SONG}" background.drawing=true icon.drawing=true diff --git a/stow/.config/sketchybar/sketchybarrc b/stow/.config/sketchybar/sketchybarrc index 93f7c72..6b3ace8 100755 --- a/stow/.config/sketchybar/sketchybarrc +++ b/stow/.config/sketchybar/sketchybarrc @@ -80,6 +80,9 @@ sketchybar --add item music left \ background.padding_right=0 \ background.padding_left=0 \ background.drawing=false \ + scroll_texts=1 \ + label.max_chars=50 \ + label.scroll_duration=500 \ background.color=$PRIMARY_COLOUR \ icon.color=$BACKGROUND_COLOUR \ label.color=$BACKGROUND_COLOUR \