ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 bixxter

adlib-lyrics

在提示列上方顯示目前播放的 Apple Music 或 Spotify 曲目同步歌詞,可選跳舞吉祥物,透過 osascript 使用 LRCLIB 資料。

已翻譯

關於這個 mod

Claude Code 裡的同步歌詞。Apple Music 或 Spotify 正在播放的內容,會逐字出現在提示列正上方,還有一個跟著節拍跳舞的小型吉祥物。透過 /plugin marketplace add bixxter/adlib-lyrics 與 /plugin install adlib-lyrics@adlib-lyrics 安裝,接著執行 /reload-plugins。需要 macOS 與支援 mod 的 Claude Code(以 2.1.287 建置並測試);必須授予 macOS 權限,讓終端機控制 Music 或 Spotify。設定(Lyrics stack/line/off、dancing mascot on/off)在 /config 中配置。它透過 osascript 每秒輪詢一次播放狀態,從 LRCLIB 取得歌詞,並將吉祥物繪製成盲文點陣精靈。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add bixxter/adlib-lyrics
claude plugin install adlib-lyrics
原文 / README

adlib-lyrics

Synced lyrics inside Claude Code. Whatever is playing in Apple Music or Spotify shows up right above your prompt, word by word, with a tiny mascot dancing on the beat.

⠀⡔⣪⣭⣭⣕⢢⠀   the build is green, the coffee's warm
⣸⣿⣏⣻⣏⣻⣿⡇   one more commit before the storm
⠈⠙⢿⠮⠵⡿⠓⠄   and the agent hums along

A free Claude Code mod from the maker of Adlib, the synced-lyrics overlay for Mac. The mascot is Adlib's: in the app it dances when a song has no lyrics, and here it dances all the time.

Install

In Claude Code:

/plugin marketplace add bixxter/adlib-lyrics
/plugin install adlib-lyrics@adlib-lyrics
/reload-plugins

Needs macOS and a Claude Code with mods (built and tested on 2.1.287). The first time a song plays, macOS asks whether your terminal may control Music or Spotify. Allow it, or nothing shows.

Settings

Two rows in /config (or /plugin configure adlib-lyrics@adlib-lyrics). A change applies at once.

| Setting | Choices | | --- | --- | | Lyrics | stack: the line before, the line being sung and the next one (default) · line: only the line being sung · off: no lyrics | | Dancing mascot | on (default) / off. Terminal only: the desktop app's Code tab gets the lyrics alone. |

How it works

  • Once a second it asks Music and Spotify what is playing, through osascript (Apple Events). It never launches either app, and it checks every 3 s while nothing plays.
  • The lyrics come from LRCLIB, a free, community-synced lyrics database. The song's title and artist go to lrclib.net, and nothing else leaves your Mac.
  • LRCLIB times lines, not words, so each word lights up at a pace spread by its length.
  • The mascot is Adlib's 16×12 pixel sprite drawn in braille dots, 8×3 characters.
  • The first time it finds lyrics it shows one note about Adlib. That happens once ever.

Develop

git clone https://github.com/bixxter/adlib-lyrics
claude --plugin-dir ./adlib-lyrics      # loads it for that session, reloading on save
claude plugin test ./adlib-lyrics       # the tests
claude plugin validate ./adlib-lyrics

Credits

  • Made by bixxter, the maker of Adlib. Adlib puts the same word-by-word lyrics on your Mac's desktop, with a blur-focus look and the album art behind them.
  • Lyrics by LRCLIB.

License

MIT for the code. The Adlib name and mascot artwork are not covered by it; see LICENSE.

更多類似作品