update: music long name clipping

This commit is contained in:
odweta
2026-05-26 14:46:11 +02:00
parent 67d2dcc3b5
commit 0ff5b5d554
+7 -1
View File
@@ -19,4 +19,10 @@ if [[ "$(echo $STATUS_TAIL | awk -F " " '{print $4}')" == "on" ]]; then
ICON="$ICON " ICON="$ICON "
fi fi
echo -n "$ICON$NAME" STATUS="$ICON$NAME"
if (( ${#STATUS} >= 30 )); then
echo -n "$(echo -n "$ICON$NAME" | cut -c-30)..."
else
echo -n "$ICON$NAME"
fi