This commit is contained in:
2024-04-26 15:09:23 -04:00
parent 2ca5c136da
commit 1dd4472634
3 changed files with 29 additions and 25 deletions

View File

@@ -6,7 +6,11 @@ ALBUM=$(playerctl metadata album) # Command to get album
MAXCHAR="128" # Maximum characters allowed in string
if [ ${CONCISE} == "false" ]; then
playerctl metadata title > /dev/null
if [ "$?" != 0 ]; then
printf "No players found"
elif [ ${CONCISE} == "false" ]; then
printf "%.${MAXCHAR}s\n" "${TRACK} - by ${ARTIST} - on ${ALBUM}"
elif [ ${CONCISE} == "true" ]; then
printf "%.${MAXCHAR}s\n" "${ARTIST} - ${TRACK}"