Skip to content
Projects

About

Terminal music player with Soulseek integration, MusicBrainz tagging, Last.fm scrobbling, and radio mode. Built with Go and Bubble Tea.

Design & Media

How these counts are measured

What you can do

  • Library Browser: Browse music by Artist > Album > Track hierarchy
  • File Browser: Navigate filesystem with file/folder deletion
  • Playlists: Create, organize, and manage playlists with folder hierarchy
  • Favorites: Quick-access playlist with heart icon display

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Waves

A keyboard-driven terminal music player for Linux with Soulseek downloads, MusicBrainz tagging, Last.fm scrobbling, and radio mode.

Release nixpkgs unstable AUR License CI

Waves terminal music player demo

Note: This project is in active development. Some features may be incomplete.

Features

  • Library Browser: Browse music by Artist > Album > Track hierarchy
  • File Browser: Navigate filesystem with file/folder deletion
  • Playlists: Create, organize, and manage playlists with folder hierarchy
  • Favorites: Quick-access playlist with heart icon display
  • Playing Queue: Persistent queue with multi-selection, reordering, and undo/redo
  • Audio Playback: MP3, FLAC, OPUS/OGG, and M4A/AAC support with seeking
  • Album Art: Display album art in expanded player bar, auto-fetch during import
  • Full-Text Search: SQLite FTS5 search across library, files, and playlists
  • Download Manager: Search and download from Soulseek via slskd integration
  • New Releases: Recent and upcoming albums from your library's artists and lookalikes, one keypress from download
  • Import System: MusicBrainz tagging, file renaming, and library integration
  • Last.fm Scrobbling: Track your listening history with offline queue support
  • Radio Mode: Endless playback with Last.fm similar artists and intelligent track selection
  • Lyrics: Lyrics that follow playback, from a .lrc file next to the track or from lrclib
  • Export: Copy music from the library or the queue to a removable device or a folder
  • Media Keys: MPRIS support for media keys and desktop widgets (Linux)
  • Desktop Notifications: Optional notifications for track changes and finished imports (Linux)
  • Mouse Support: Click to navigate, select tracks, and control playback
  • State Persistence: Queue and navigation saved between sessions

Installation

Nix

Available in nixpkgs unstable:

# Try without installing
nix run nixpkgs#waves

# Install (flake-based)
nix profile install nixpkgs#waves

On NixOS, add waves to environment.systemPackages.

You can also run directly from the repository for the latest development version:

nix run github:llehouerou/waves

Arch Linux (AUR)

yay -S waves-bin

From Source

go install github.com/llehouerou/waves@latest

Requires Go 1.25+ and ALSA development libraries (libasound2-dev on Debian/Ubuntu, alsa-lib on Arch).

Development

git clone https://github.com/llehouerou/waves.git
cd waves
make install-hooks  # Install git pre-commit hook
make run            # Run the app

Controls

Press ? at any time to show the keybinding help popup.

Global

Key Action
q / ctrl+c Quit
Tab Switch focus (navigator / queue)
p Toggle queue panel
? Show help
ctrl+z Undo the last queue edit
ctrl+y Redo the last undone queue edit

View Switching

Key Action
F1 Library view
F2 File browser view
F3 Playlists view
F4 Downloads view

F-Sequence Commands

Key Action
f f Deep search
f r Refresh library (incremental)
f R Full rescan library
f p Library sources manager
f d Download from Soulseek
f l Last.fm settings
f n New releases list
f y Show lyrics

Playback

Key Action
Space Play/pause
s Stop
v Toggle player display
R Cycle repeat mode (off/all/one/radio)
S Toggle shuffle
+ / - Volume +/-10%
M Toggle mute
Shift+Left/Right Seek -/+5 seconds
Alt+Shift+Left/Right Seek -/+15 seconds
PgDown / PgUp Next/previous track
Home / End First/last track

Navigator

Key Action
h j k l / Arrows Navigate
Enter Play (replace queue)
a Add to queue
g / G First/last item
ctrl+d / ctrl+u Half page down/up
/ Search current items

Library (F1 view)

Key Action
d Delete track
F Toggle favorite
V Toggle album view
ctrl+a Add to playlist
t Retag album
e Export to a device or a folder
i Similar artists

Album View Options

Key Action
o g Album grouping
o s Album sorting
o p Album presets

File Browser (F2 view)

Key Action
d Delete file/folder

Playlists (F3 view)

Key Action
n Create new playlist
N Create new folder
ctrl+r Rename playlist/folder
ctrl+d Delete playlist/folder

Playlist Track Editing

Key Action
d Remove track
J / K Move track down/up

Downloads (F4 view)

Key Action
Enter Expand/collapse files
i Import download
d Delete download
ctrl+r Retry failed files
D Clear completed
r Refresh from slskd
j / k (or Down / Up) Move the cursor down/up
g / G First/last item
ctrl+d / ctrl+u Half page down/up

Queue Panel

Key Action
x Toggle selection
d / Delete Delete selected
D Keep only the selected tracks
c Clear except playing
J / K (or Shift+Down / Shift+Up) Move selected down/up
F Toggle favorite
ctrl+a Add to playlist
e Export to a device or a folder
Enter Play track
Esc Clear selection; with nothing selected, back to the navigator
L Locate in navigator
/ Search the items of the navigator's view (not in the Downloads view)
j / k (or Down / Up) Move the cursor down/up
g / G First/last item
ctrl+d / ctrl+u Half page down/up

Configuration

Copy config.example.toml to ~/.config/waves/config.toml or ./config.toml.

# Default folder to open on startup (supports ~)
default_folder = "~/Music"

# Icon style: "nerd" (Nerd Font), "unicode" (emoji), "none" (text)
icons = "nerd"

# slskd integration for downloading music from Soulseek
[slskd]
url = "http://localhost:5030"
apikey = "your-api-key-here"
completed_path = "~/downloads/complete"  # For disk verification and importing

[slskd.filters]
format = "both"       # "both", "lossless", or "lossy"
no_slot = true        # Filter out users with no free upload slot
track_count = true    # Filter results with fewer tracks than expected

[musicbrainz]
albums_only = true    # Filter to show only albums (not singles/EPs)

# Last.fm scrobbling (get API key at https://www.last.fm/api/account/create)
[lastfm]
api_key = "your-api-key"
api_secret = "your-api-secret"

Library Sources

Library sources are managed in-app using f p in the library view (F1). This opens a popup where you can add, remove, and view source paths. Sources are persisted in the database, not the config file.

Download Manager

The download manager requires a running slskd instance. Configure the URL and API key in config.toml, then use f d to open the download popup. Search for artists/albums, select a release from MusicBrainz, and download matching results from Soulseek. Downloaded files can be imported with MusicBrainz tagging and Picard-compatible file renaming.

See New Releases for the f n watch screen that feeds the same flow.

Completed downloads path:

To enable disk verification and importing, set completed_path to match your slskd completed downloads folder:

[slskd]
url = "http://localhost:5030"
apikey = "your-api-key"
completed_path = "~/downloads/complete"  # Path to slskd's completed folder

The app matches files by extracting the folder name from slskd's directory path. For example, if slskd reports a download in @@username\Music\Pink Floyd - The Wall, the app looks for files in completed_path/Pink Floyd - The Wall/. This means:

  • The final folder name from slskd must match the folder on disk
  • Files are verified by checking existence and size
  • Once verified, downloads can be imported into your library
  • A download is refused when its folder name is already used by another download waves tracks, or when that folder already exists in completed_path with anything in it. Delete the other download in the Downloads view (F4), or empty or remove the folder. An empty folder, such as one left behind by an earlier version after an import, does not block a download.

Importing:

  • Only a download queued from a MusicBrainz release can be imported.
  • An import never replaces a file that is already at its destination: the track fails with a file is already at <path>: delete it from disk to replace it. To replace it, delete the file from disk first: d in the library, then "Delete from disk", or from the file browser (F2) when the track is no longer in the library. "Remove from library" keeps the file on disk, so the import keeps failing.
  • The album gets the cover fetched for its release; an image from the download folder is not imported.
  • Esc closes the import popup and the import continues in the background.
  • When every file is imported, waves removes the download, its slskd transfers, and its folder if it is empty.

New Releases

f n opens the download popup on a watch screen of album and EP releases from the last and next 90 days — for the artists in your library, and for artists you don't own yet but that Last.fm considers close to the ones you do.

 New releases    Recent 166   Upcoming 51    filter: all

 ── Today ──────────────────────────────────────────────────
    ♪  Mogwai — The Bad Fire                     Album
 >  ◉  Jane Weaver — Love In Constant Spacetime  Album · ← Stereolab, Broadcast +2
 ── Yesterday ──────────────────────────────────────────────
    ✓  Radiohead — OK Computer (Remastered)      Album

Rows are marked: an artist you already have, a discovery from similar artists (with who recommended it), an album you already own, or one that is already downloading.

Key Action
Tab / h l / ← → Switch between Recent and Upcoming
j k / ↑ ↓ Move
f Filter: all → library → discoveries
/ Search by artist or title
r Refresh now
Enter Download
Backspace / Esc Close

Data comes from ListenBrainz, refreshed once a day in the background, plus your Last.fm similar artists. Without slskd the list stays browsable and only Enter refuses; without a Last.fm key you get your library's releases only.

Last.fm Scrobbling

Scrobble your listening history to Last.fm. Create an API account at last.fm/api/account/create, add the credentials to config.toml, then link your account with f l. The track playing shows on your profile from its start, and tracks are scrobbled after 50% of playback or 4 minutes, whichever comes first. Failed scrobbles are kept and sent again at startup and every five minutes; one that Last.fm refuses ten times, or that is older than two weeks, is dropped.

Radio Mode

Radio mode provides endless playback by automatically adding tracks from similar artists to your queue. It uses the Last.fm API to find artists similar to what you're currently playing, then selects tracks from your local library.

Requirements:

  • Last.fm API credentials configured in config.toml (same as scrobbling). No linked account is needed; with your account linked (f l), the tracks you scrobbled get the user_boost. Without the credentials, R skips radio mode, and a queue saved in radio mode is restored with repeat off.
  • A populated music library with indexed artists

Usage:

  1. Start playing any track from your library
  2. Press R to cycle repeat modes until you see the radio icon (📻)
  3. The queue will automatically fill with related tracks as you listen

How it works:

  • Finds similar artists via Last.fm API based on the currently playing artist
  • Matches similar artists to your local library using fuzzy matching
  • Scores tracks based on popularity, your listening history, and artist similarity
  • Enforces variety by limiting artist repetition and preventing oscillation patterns
  • Caches API responses locally to reduce network requests

Configuration options:

[radio]
# Queue behavior
buffer_size = 1              # Tracks to queue ahead (1-20)

# Artist selection
similar_artists_limit = 50   # Similar artists to fetch from API
artists_per_fill = 5         # Artists to use per fill
artist_match_threshold = 0.8 # Fuzzy match threshold (0.0-1.0); 0 matches the closest library artist, unless none is similar at all

# Variety enforcement
max_artist_repeat = 2        # Max times same artist in window
artist_repeat_window = 20    # Window size for repeat check
recent_seeds_window = 3      # Seeds to remember for A→B→A prevention; 0 remembers none (prevention off)

# Scoring weights
top_track_boost = 3.0        # Boost multiplier for top tracks; 0 scores them as any other track
user_boost = 1.3             # Multiplier for user-scrobbled tracks
favorite_boost = 2.0         # Multiplier for favorite tracks (replaces user_boost)
decay_factor = 0.1           # Score multiplier for recently played (0.0-1.0); 0 scores them 0, so other tracks are picked first
min_similarity_weight = 0.1  # Floor for similarity score (0.0-1.0); 0 is no floor

# Cache
cache_ttl_days = 7           # Cache TTL in days

Desktop Notifications

Desktop notifications are available on Linux via D-Bus. They are disabled by default and must be enabled in config.toml:

[notifications]
enabled = true           # Master toggle (required)
now_playing = true       # Notify on track change
downloads = true         # Notify when an import finishes
show_album_art = true    # Include album art in notifications
timeout = 5000           # Notification timeout in ms (default: 5000, 0 = never expire)

Notifications use the system notification daemon and support album art display when available.

Media Keys (MPRIS)

On Linux, waves registers on the session bus as an MPRIS player, with nothing to configure. Media keys, playerctl and desktop widgets can play, pause, stop, skip, seek and set the volume, and they show the current track.

Lyrics

f y shows the lyrics of the playing track and follows playback. Lyrics come from a .lrc file next to the track, otherwise from lrclib, and are cached.

Export

e in the library or the queue copies the selected music to an export target: a removable device or a folder. Targets are remembered, and exports run in the background.

File Renaming (Import)

When importing downloaded files, the rename pattern determines the folder structure and filename. Configure it with templates and smart features:

[rename]
# Templates (defaults shown)
folder = "{albumartist}/{year} • {album}"
filename = "{artist} • {album} • {tracknumber} · {title}"

# Smart features (all default to true)
reissue_notation = true      # Add [YYYY reissue] suffix for reissues
va_brackets = true           # Wrap "Various Artists" in brackets
singles_handling = true      # Special handling for singles
release_type_notes = true    # Add [soundtrack], [live], etc.
and_to_ampersand = true      # Convert "and" to "&"
remove_feat = true           # Remove "feat." patterns from titles
ellipsis_normalize = true    # Convert "..." to "…"

Available placeholders:

Placeholder Description
{artist} Track artist (falls back to album artist)
{albumartist} Album artist
{album} Album title (includes reissue/release type notes when enabled)
{title} Track title
{year} Release year (prefers original release year)
{tracknumber} Track number (zero-padded, multi-disc aware: 01 or 01.05)
{discnumber} Disc number
{date} Full release date
{originalyear} Original release year

Examples:

Simple structure:

folder = "{albumartist}/{album}"
filename = "{tracknumber} - {title}"
# Result: Pink Floyd/The Dark Side of the Moon/04 - Time.flac

Flat structure:

folder = "{albumartist}"
filename = "{album} - {tracknumber} - {title}"
# Result: Pink Floyd/The Dark Side of the Moon - 04 - Time.flac

A folder or file name never starts with a dot, which would hide it: as Picard does, the leading dot is replaced with _ (.38 Special → _38 Special). A name the cleaning leaves empty (an artist ? or ¿?, an album ? under {albumartist}/{album}, a title ? under {title}) is _ too: artist ? is imported to _/1977 • Animals/…. The tags keep the name as it is.

Theme

All colors are optional; omitted values use defaults. Colors are hex, #RGB or #RRGGBB:

[theme]
accent = "#a78bfa"      # Primary accent (focused borders, highlights, progress bars)
secondary = "#f1a208"   # Secondary accent (radio mode, logo, warnings)
text = "#c0c0c0"        # Primary text
muted = "#808080"       # Dimmed/secondary text
background = "#1a1a1a"  # Panel backgrounds
border = "#585858"      # Unfocused borders

Album Art Protocol

waves asks the terminal which image protocol it supports. Set the WAVES_IMAGE_PROTOCOL environment variable to override it: kitty, sixel, blocks (unicode half blocks), or none to disable album art.

License

GPL-3.0 - See LICENSE for details.

Explore related projects

Loading…