0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

カバーアートをターミナルに表示

Last updated at Posted at 2025-07-27

NetBSD/c1kで動かしているnnnのプラグインでalacを再生しているのですがiTunesのようにカバーアートを表示してみました。

アルバムのフォルダーに.coverartというファイルがある時に表示します。

if [ -e "$1/.coverart" ]; then
img2sixel "$1/.coverart"
fi

libsixelは自前でビルドしましたが、日本のNetBSD関係の人が作られているようで、問題なくビルドできました。

カバーアートの取得は手ごろなAPIがなかったので、手動でやることにしました。これもnnnのプラグインでやってます。

#!/usr/bin/env sh

if [ -d "$1" ]; then

echo -n "URL: "

read url

ftp -o "$1/.coverart" "${url}"

fi

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?