about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/scripts/source/wrappers/lyrics.sh
blob: f50ebe0a8ef917baff67df0549c553e90ea1473a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env dash

# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH

(
    cd "$XDG_MUSIC_DIR" || die "No music dir!"
    exiftool "$(mpc --format '%file%' current)" -json | jq '.[0].Lyrics' -r | less
)

# vim: ft=sh