4/26
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user