12 lines
372 B
Bash
Executable file
12 lines
372 B
Bash
Executable file
#!/usr/bin/env bash
|
|
playerctl metadata --follow --format \
|
|
'{"playerName": "{{ playerName }}",'\
|
|
'"status": "{{ status }}",'\
|
|
'"artist": "{{ artist }}",'\
|
|
'"title": "{{ title }}",'\
|
|
'"album": "{{ album }}",'\
|
|
'"position": "{{ position }}",'\
|
|
'"position_d": "{{ duration(position) }}",'\
|
|
'"duration": "{{ mpris:length }}",'\
|
|
'"duration_d": "{{ duration(mpris:length) }}"}'
|