4/26
This commit is contained in:
@@ -6,7 +6,7 @@ msg_disconnected="𐄂 Security key not connected\n"
|
||||
lsusb | grep Lexar > /dev/null
|
||||
|
||||
if [ "$?" == 0 ]; then
|
||||
printf "[✓] Security key connected.\n"
|
||||
printf "[ ✓ ] Security key connected.\n"
|
||||
else
|
||||
printf "[𐄂] Security key disconnected.\n"
|
||||
printf "[ 𐄂 ] Security key disconnected.\n"
|
||||
fi
|
||||
|
||||
@@ -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