15 lines
421 B
Bash
Executable file
15 lines
421 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#playerctl --follow metadata --format '{{ title }}' | {
|
|
playerctl metadata --format '{{ title }}\n{{ artist }}'
|
|
|
|
#playerctl metadata --format '{{ title }}\n{{ artist }}' | {
|
|
# while read -r nowplaying_title; do
|
|
# if [ ${#nowplaying_title} -ge 45 ];then
|
|
# echo "${nowplaying_title:0:40}…"
|
|
# else
|
|
# echo "${nowplaying_title}"
|
|
# fi
|
|
# echo "${nowplaying_title}" | head -c 50;
|
|
# done
|
|
#}
|