145 lines
6.3 KiB
Markdown
145 lines
6.3 KiB
Markdown
<div align="center">
|
||
|
||
<img src="assets/mulberry.svg" width="104" alt="Mulberry">
|
||
|
||
# Mulberry
|
||
|
||
**A Material You music player for Linux, written in Rust.**
|
||
|
||
Your library, tabbed playlists, synced lyrics and a colour-matched "now playing" panel,
|
||
in one small native app.
|
||
|
||
[Download](https://archlinux.tail7c4f5e.ts.net/git/astar76/Mulberry/releases/latest) ·
|
||
[Build from source](#build-from-source) ·
|
||
[Shortcuts](#keyboard-shortcuts)
|
||
|
||

|
||
|
||
</div>
|
||
|
||
## Highlights
|
||
|
||
- **Material You everywhere.** Colours come from your system accent, the album art or a colour you pick, in light or dark.
|
||
The cover is a spinning cookie wrapped in a live spectrum, the seek bar is wavy, the play button morphs.
|
||
- **Fix tags from the playlist.** Select tracks, right-click the *Album*, *Artist*, *Title*… cell of one of them and choose
|
||
**Set album to “…”**: the value is written into every selected file at once, with Undo.
|
||
- **Synced lyrics** from LRCLIB, NetEase, embedded tags or `.lrc` files; click a line to jump there.
|
||
- **Gapless playback, crossfade, equalizer and ReplayGain** through libmpv, plus YouTube/SoundCloud/Bandcamp links and internet radio.
|
||
- **Light on resources.** One native binary, GPU-drawn UI, animations capped at 30 fps (adjustable), no repaints while paused.
|
||
- **Lives in the tray.** Closing the window (or Ctrl+Q) keeps the music going; the tray icon brings the window back.
|
||
Media keys and shell widgets work through MPRIS.
|
||
|
||

|
||
|
||
## Features
|
||
|
||
**Library**
|
||
- Incremental background scanner over your music folders, stored in SQLite.
|
||
- Browse by album artist, artist, genre, year or album; search with `artist:` `album:` `genre:` `year:>2000` `rating:>3`.
|
||
- Smart lists (recently added, most played, loved, never played, random…), play counts, skips and 0–5 star ratings.
|
||
- Most audio formats (MP3, FLAC, Ogg/Opus, M4A/AAC/ALAC, WMA, APE, WavPack, WAV/AIFF, DSF, trackers, …); cue sheets play as separate tracks.
|
||
|
||
**Playlists**
|
||
- Tabs with undo/redo, multi-select, drag and drop (within a list, between tabs, from the library or the file manager).
|
||
- Column chooser, reordering, resizing, sorting and filtering; remove duplicates and missing files; saved playlists that reopen later.
|
||
- Play queue, *Play next*, *Stop after this track*, shuffle, repeat.
|
||
- Import M3U, M3U8, PLS, XSPF, WPL, ASX, CUE; export M3U, M3U8, PLS, XSPF, WPL, one list or all at once.
|
||
|
||
**Metadata**
|
||
- Tag editor for one or many files, with cover embedding for every common format.
|
||
- MusicBrainz lookup (pick a match, or auto-apply the best) and a cover manager (iTunes, Deezer, Cover Art Archive, Last.fm).
|
||
- Last.fm and ListenBrainz scrobbling with an offline cache, and Love.
|
||
|
||
**Audio CD:** drive detection, track list with MusicBrainz names and cover, playback, and ripping to FLAC, ALAC, Opus, Vorbis, MP3 or WAV.
|
||
|
||
**Desktop:** MPRIS2, tray icon, notifications with cover art, single instance (files you open join the running player),
|
||
focus mode (F11), compact and hidden now-playing layouts, a floating bass-reactive shape.
|
||
|
||
<table>
|
||
<tr>
|
||
<td><img src="docs/focus.png" alt="Focus mode"></td>
|
||
<td><img src="docs/settings.png" alt="Settings"></td>
|
||
</tr>
|
||
<tr><td align="center">Focus mode (F11)</td><td align="center">Settings</td></tr>
|
||
</table>
|
||
|
||
## Install
|
||
|
||
### From a release
|
||
Download `Mulberry-<version>-Linux-x86_64.tar.gz` from the [Releases page](https://archlinux.tail7c4f5e.ts.net/git/astar76/Mulberry/releases),
|
||
unpack it and run `./install.sh` inside. It installs to `~/.local` (no root).
|
||
|
||
### iPhone (jailbroken / TrollStore)
|
||
`Mulberry-<version>-iOS.ipa` on the Releases page installs with TrollStore. The iOS app lives in [`ios/`](ios/README.md)
|
||
(SwiftUI, built on Linux without Xcode).
|
||
|
||
### Build from source
|
||
You need Rust and `libmpv` (the `mpv` package).
|
||
|
||
```bash
|
||
git clone forgejo:astar76/Mulberry.git # or the https URL of this page
|
||
cd Mulberry
|
||
./install.sh # builds in release mode, installs the binary, menu entry and icon
|
||
./install.sh --uninstall # remove it again (keeps your data); --purge deletes data too
|
||
```
|
||
|
||
Optional tools unlock more: `ffmpeg` (visualizer analysis, CD encoding), `cdparanoia` (ripping),
|
||
`yt-dlp` (web links), `parec` from PulseAudio/PipeWire (visualizer for radio streams).
|
||
Arch: `sudo pacman -S rust mpv ffmpeg cdparanoia yt-dlp libpulse`.
|
||
|
||
## Keyboard shortcuts
|
||
|
||
| Keys | Action |
|
||
|---|---|
|
||
| Space | Play / pause |
|
||
| Ctrl+← / Ctrl+→ | Previous / next |
|
||
| Alt+← / Alt+→ | Seek −/+ 10 s |
|
||
| Ctrl+↑ / Ctrl+↓, Ctrl+M | Volume, mute |
|
||
| Ctrl+D | Queue / dequeue selected |
|
||
| Ctrl+J | Jump to the playing track |
|
||
| Ctrl+F | Filter the playlist |
|
||
| Ctrl+E | Edit tags |
|
||
| Ctrl+T / Ctrl+W | New / close playlist |
|
||
| Ctrl+I / Ctrl+S / Ctrl+Shift+S | Import / export / export all playlists |
|
||
| Ctrl+Z / Ctrl+Shift+Z | Undo / redo |
|
||
| Ctrl+L | Love the current track |
|
||
| Ctrl+O / Ctrl+Shift+O / Ctrl+U | Open files / folder / URL |
|
||
| Ctrl+H | Shuffle on/off |
|
||
| Ctrl+Q | Close (to the tray if enabled, else quit) |
|
||
| F5 / Ctrl+F5 | Update library / full rescan |
|
||
| F11 | Focus mode |
|
||
|
||
## Where your data lives
|
||
|
||
| | |
|
||
|---|---|
|
||
| Settings | `~/.config/mulberry/settings.json` |
|
||
| Library, playlists, lyrics cache | `~/.local/share/mulberry/library.db` |
|
||
| Covers | `~/.local/share/mulberry/covers` |
|
||
| Thumbnails | `~/.cache/mulberry` |
|
||
|
||
Settings from older Python versions (`mulberry.conf`) and the old library database are picked up automatically.
|
||
|
||
## Development
|
||
|
||
```text
|
||
src/player.rs libmpv engine, gapless/crossfade, the monotonic position clock
|
||
src/library.rs SQLite collection and scanner
|
||
src/playlist.rs playlists, queue, shuffle, undo
|
||
src/tags.rs tag reading/writing (lofty), covers
|
||
src/spectrum.rs FFT visualizer
|
||
src/online.rs lyrics, covers, MusicBrainz, web links
|
||
src/mpris.rs src/tray.rs src/scrobble.rs src/cd.rs
|
||
src/ui/ hand-painted Material 3 widgets, hero, playlist view, sidebar, dialogs
|
||
tests/ tag round trips, playback clock, MPRIS/tray, offscreen UI tests
|
||
```
|
||
|
||
```bash
|
||
cargo run --release
|
||
cargo test --test tagwrite --test playback --test stop --test dbus
|
||
MULBERRY_DOCS=docs cargo test --test docs_shots # regenerate the screenshots above
|
||
```
|
||
|
||
UI tests render offscreen with `egui_kittest` against a made-up library, so no window opens and your music is never touched.
|
||
|
||
Icons: Material Symbols (Apache 2.0). License: MIT.
|