12 lines
294 B
Bash
Executable file
12 lines
294 B
Bash
Executable file
#!/bin/bash
|
|
|
|
formatReturn() {
|
|
playerctl metadata | jq -R -s -c -r 'split("\n") | map(match("(\\w+) {1}([\\w:]+) {3,}(.+)") | {(.captures[1].string): .captures[2].string}) | add'
|
|
|
|
}
|
|
|
|
playerctl --follow metadata | while read line; do
|
|
~/.config/scripts/media.sh display 5
|
|
formatReturn
|
|
|
|
done
|