| Crates.io | lyra-rs |
| lib.rs | lyra-rs |
| version | 1.0.2 |
| created_at | 2025-08-03 09:30:35.916334+00 |
| updated_at | 2025-08-03 09:42:05.645052+00 |
| description | A terminal-based lyrics display tool for MPD that syncs and scrolls lyrics in real-time. Supports embedded lyrics in audio files and external LRC files. |
| homepage | |
| repository | https://github.com/WayneKent/lyra |
| max_upload_size | |
| id | 1779530 |
| size | 3,714,715 |
一个基于终端的MPD歌词显示工具,实时同步滚动显示歌词。支持音频文件内嵌歌词和外部LRC文件。
音乐服务器连接
歌词支持
播放体验
个性化设置
终端界面
环境准备
确保已安装 Rust 开发环境(推荐使用 官方安装指南)
直接安装
执行以下命令从 crates.io 安装最新稳定版:
cargo install lyra-rs
克隆仓库
git clone https://github.com/WayneKent/lyra.git
cd lyra
编译安装
执行以下命令进行安装:
cargo install .
首次运行时会自动生成默认配置,配置文件路径为:
~/.config/lyra/config.toml
[mpd]
host = "127.0.0.1" # MPD 服务器地址
port = 6600 # MPD 服务器端口
password = "" # MPD 认证密码(如无密码可留空)
[paths]
music_dir = "~/Music" # 音乐文件目录
lyrics_dir = "~/Music" # 歌词文件目录(默认与音乐目录相同)
[lyric_style]
color = "#AAAAAA" # 普通歌词颜色
bold = false # 普通歌词是否加粗
[lyric_style.current]
color = "#00FF7F" # 当前播放歌词颜色
bold = true # 当前播放歌词是否加粗
lyra-rs
q 键退出程序Lyra 会按以下优先级查找歌词:
lyrics_dir 目录中查找匹配的 .lrc 文件本项目采用 MIT License 开源协议