nixos-config/home-manager/wayland/eww/scripts/mpris-metadata

12 lines
372 B
Plaintext
Raw Permalink Normal View History

2024-05-11 19:17:30 -04:00
#!/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) }}"}'