diff options
Diffstat (limited to '')
-rw-r--r-- | hm/soispha/pkgs/scripts.nix | 3 | ||||
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/lyrics | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index 663cb67c..d440e24a 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -143,10 +143,9 @@ dependencies = builtins.attrValues { inherit (pkgs) - mediainfo + exiftool mpc-cli jq - gnused less locale # dependency of less ; diff --git a/hm/soispha/pkgs/scripts/wrappers/lyrics b/hm/soispha/pkgs/scripts/wrappers/lyrics index a72eede1..9e019fe2 100755 --- a/hm/soispha/pkgs/scripts/wrappers/lyrics +++ b/hm/soispha/pkgs/scripts/wrappers/lyrics @@ -3,14 +3,9 @@ # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="1.9.0" . %SHELL_LIBRARY_PATH - -out="$(mktmp)" - -print " " > "$out" ( cd "$XDG_MUSIC_DIR" || die "No music dir!" - mediainfo --Output=JSON "$(mpc --format '%file%' current)" | jq -r '.media.track[0].Lyrics' | sed 's|/|\n|g' >> "$out" + exiftool "$(mpc --format '%file%' current)" -json | jq '.[0].Lyrics' -r | less ) -less "$out" # vim: ft=sh |