Floating synced lyrics for Linux. Lyrics Float watches any media player that speaks MPRIS (browsers playing YouTube Music, Spotify, mpv, Elisa, ...) over the D-Bus session bus, fetches timed lyrics from LRCLIB, and shows the current line in a small always-on-top pill you can park anywhere on screen.
Built with Kotlin and Compose Multiplatform for desktop. The lyrics feature
set (providers, extended-LRC parsing, word karaoke, agent positioning,
interval indicator, romaji) is ported from
Metrolist — a local reference
clone lives at ~/projects/_sandbox/_github/Metrolist. The native window-drag
technique is adapted from pray-time (~/projects/_sandbox/pray-time).
- Now-playing detection over MPRIS, with the same player-selection heuristic KDE Plasma's media widget uses. Works with YouTube Music in Firefox and Chromium; any MPRIS player works.
- Multiple lyrics providers tried in order: BetterLyrics, Lrclib, KuGou, Paxsenix (Apple Music) and LyricsPlus — each toggleable in settings. Extended-LRC word timings, duet agent markers and background vocals are understood everywhere.
- Metrolist-style lyrics rendering: karaoke word-by-word fill, sliding line transitions, interval indicator dots during instrumental gaps, agent positioning (v1 left / v2 right). The playback position is interpolated locally, so the highlight stays smooth without hammering D-Bus.
- Romaji for Japanese lyrics. Offline romaji from kuromoji shows first, with
phrase-level fixes for readings it gets wrong (一人 →
hitori). When a translation provider is set up, an AI model rewrites the romaji line by line in context and replaces the offline version. The offline romaji stays if the request fails orAI romajiis off. - AI lyrics translation, shown under the romaji in its own text size. One
request translates the whole song. Providers are OpenRouter, OpenAI,
Claude, Gemini, Perplexity, xAI, Mistral, Inception, any custom
OpenAI-compatible endpoint, DeepL, and T3 Code. Literal or transcribed
prompt styles and a custom prompt are available in Settings → Translate,
and the hover bar has a translate toggle. Results are cached under
$XDG_DATA_HOME/lyricsfloat/. DeepL cannot produce romaji, so it only translates. - Manual lyrics search (1 s debounce) with per-track picks that persist. Sync offset fine-tuning (±50 ms steps, −3..+3 s slider).
- Floating overlay: transparent, always-on-top, native WM drag and edge/corner resize, hover controls, progress bar, adjustable text size and opacity. Context lines scale with the window size.
- Settings: theme (system/light/dark), sync offset, screen anchor, preferred player, auto-hide, translation provider and target language.
- System tray via StatusNotifierItem with show/hide, search, settings and quit.
- Linux with a Wayland session (KDE Plasma recommended). The app talks to the session bus for both song detection and the tray icon; no tray fallback is provided, so a desktop implementing StatusNotifierItem is expected.
- Java 17+ to run from source (Gradle toolchain provisioning can fetch one).
./gradlew runor with just:
just devjust build-appimage # or: ./gradlew stageAppImageThe timestamped AppImage lands in _apk/. The build output stays under build/compose/binaries/main/appimage/.
Kotlin/Compose desktop apps run through XWayland on Wayland sessions. The overlay sets always-on-top itself, and KWin honors it for XWayland windows. If your compositor ignores the hint (or you want the window to survive "toggle click to focus" games), add a KWin window rule:
System Settings → Window Management → Window Rules → Add New:
- Window class:
lyrics-float(match substring) - Appearance & Fixes → Keep above: Force → Yes
- Arrangement & Access → Skip taskbar: Force → Yes
Click-through is intentionally out of scope: Wayland does not let ordinary windows forward clicks to the surface below, so the pill is a normal (tiny, draggable) input target. Drag it somewhere out of the way.
ListNamesplus aNameOwnerChangedwatch discover players whose bus name starts withorg.mpris.MediaPlayer2..- The active player is chosen with KDE's multiplexer heuristic: keep the current one while it plays, else prefer whoever is playing, else the first. A preferred player can be pinned in settings.
Metadata,PlaybackStatus,RateandPositionare polled at 250 ms;SeekedandPropertiesChangedsignals make seeks and track changes instant when players emit them. Chromium never emitsPropertiesChangedforPosition(onlySeeked), so the poll is the correctness backstop.- Position between polls is extrapolated with
position + elapsed * rate, the same math playerctl and Firefox use internally.
Lyrics Float is licensed under GNU GPL-3.0-only. Lyrics code adapted from Metrolist was modified for this project in 2026. See third-party notices for the licenses and attribution for adapted code.

