4/26
This commit is contained in:
1 parent
2ca5c136da
commit
1dd4472634
3 files changed
+29
-25
No files matched your search
@@ -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