17 lines
183 B
Bash
Executable File
17 lines
183 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
meta(){
|
|
metadata=$(playerctl -f "{{title}} - {{artist}}" metadata) && echo $metadata
|
|
}
|
|
|
|
i=0
|
|
|
|
until meta || [ $i -gt 10 ];
|
|
do
|
|
sleep 1
|
|
let i=i+1
|
|
done
|
|
|
|
exit $?
|
|
|