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://astar76.com/git/astar76/Mulberry/releases/latest) · [Build from source](#build-from-source) · [Shortcuts](#keyboard-shortcuts) ![Mulberry playing a song with synced lyrics](docs/main.png)
## 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. ![Set a tag on several tracks at once](docs/set-tag-menu.png) ## 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.
Focus mode Settings
Focus mode (F11)Settings
## Install ### From a release Downloads are on the [Releases page](https://astar76.com/git/astar76/Mulberry/releases); check them against `SHA256SUMS-`. The Linux builds are made on Arch Linux and need a recent glibc (the version is named in the packages and checked by the installer), so they run on Arch and other up-to-date distributions; on older ones, build from source. - **Arch Linux:** `sudo pacman -U Mulberry--arch-x86_64.pkg.tar.zst` (package `mulberry-bin`; remove it with `sudo pacman -R mulberry-bin`). `packaging/arch/PKGBUILD` builds the same package from the release. - **Debian, Ubuntu and other apt systems:** `sudo apt install ./Mulberry--amd64.deb`. - **Nix:** `nix profile install git+https://astar76.com/git/astar76/Mulberry` (this repo is a flake), or `callPackage ./packaging/nix { }`. - **Any distribution:** unpack `Mulberry--Linux-x86_64.tar.gz` and run `sh install.sh` inside (your home, `~/.local`, no root) or `sh install.sh --system` (`/usr/local`). `sh uninstall.sh` removes it; `--purge` also deletes settings and data. `installer.sh` from this repo does the same next to a downloaded tar.gz or AppImage. - **AppImage:** `chmod +x Mulberry--x86_64.AppImage` and run it. libmpv is bundled in it. - **Windows (x64):** `Mulberry--Setup.exe` installs for your user only (no admin) with a Start menu entry and an uninstaller; `Mulberry--Windows-portable.zip` runs from any folder. ### iPhone (jailbroken / TrollStore) `Mulberry--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.