aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.elvish (unfollow)
Commit message (Collapse)AuthorFilesLines
6 daystodo: config caching is donesalmonik1-1/+1
6 daysctl: interactive shell with history, editing and completionsalmonik7-0/+450
`rsp ctl` opens a prompt in the spirit of bluetoothctl. Lines are parsed with the same clap definitions as the one-shot CLI, so every command and flag works exactly as it does from a terminal, `help <command>` included. Tab completes subcommands, and track/album/artist paths for `play` through `db-complete` (run out of process, keeping its 100 ms timeout away from the input loop). History lives in the state directory. Piped input falls back to a plain line loop, so `rsp ctl < commands` works without a terminal.
6 daysaudio: open the output at the track's rate instead of pw-alsa's 44100salmonik5-28/+211
cpal asks the ALSA "default" PCM for its default config and pipewire-alsa answers 44.1 kHz no matter what the graph runs at, so 48 kHz material was resampled down to 44.1 in our linear resampler and then back up to 48 by PipeWire. The stream now opens at the track's own rate (when the device supports it), which keeps our resampler out of the path and leaves the conversion to PipeWire's polyphase one. The new `sample_rate` setting forces a fixed rate instead ("auto" by default), for anyone who would rather match the graph exactly.
6 daysconfig: parse the config once and reuse it until the file changessalmonik3-49/+124
Every command, status line and notification went through Config::load, which reads *and* rewrites config.toml, so `rsp status` alone touched the file on each call. The daemon now keeps a parsed copy and only stats the file to notice outside edits, so `rsp settings set` still takes effect immediately. Config::save refreshes the cached copy too, and Config::config_path is shared by the loader and the cache.
6 daysseek: jump within the current track from the CLI and over MPRISsalmonik5-34/+245
`rsp seek 1:30`, `rsp seek +15`, `rsp seek -30` and `rsp seek` (print the position) drive a new AudioCommand that seeks the format reader, resets the decoder and drops the buffered samples, so the cpal stream keeps running and playback continues from the new spot. MPRIS gets a working Seek/SetPosition, reports CanSeek, and the state watcher now emits Seeked when the playhead jumps (not just on track changes), which is what clients need to move their progress bar after an external seek. `rsp status` also reports the position (and duration when known) and says Paused instead of Stopped when a track is loaded but not playing.
6 daysstate: persist the queue and pick up where playback stoppedsalmonik7-12/+355
The queue, its shuffle order and whether playback was running are written to ~/.local/state/rsplayer/state.json whenever they change, and on shutdown, then restored at daemon start. Tracks that disappeared from disk are dropped instead of failing on play. `rsp resume`/`rsp toggle` now start the restored track when nothing is loaded into the engine yet, which is the state right after a restart with a queue that was paused.
6 daysqueue: use let chains and tidy importssalmonik2-8/+11
6 daysinstall.sh: only install the systemd service on linuxsalmonik1-3/+4
6 daysmpris: report trackid as an object path, drop artUrl, track loop statussalmonik1-22/+203
An empty artUrl is not a valid URI and makes some clients render a broken image, and the repeat button snapped back to "None" because LoopStatus was not stored.
6 dayslyrics: cache lrclib results, redraw cleanly and show a now playing headersalmonik1-36/+145
Plain and unavailable lyrics now wait for a track change instead of exiting, synced frames erase the previous region so shrinking frames do not leave stale text, and lrclib lookups are cached next to the track.
6 daysaudio: http streaming, opus/mkv support and stream recoverysalmonik3-243/+761
- read http(s) urls through a MediaSourceStream instead of failing - register the libopus decoder and enable mkv/aac/isomp4 in symphonia - resample to the device rate with linear interpolation - rebuild the output stream when the backend dies instead of leaving playback silent while the daemon still reports "Playing" A dead pcm makes cpal call the error callback hundreds of thousands of times per second, so errors are only counted there and reported once when the stream is dropped. The first failure of a healthy stream is retried immediately, consecutive failures back off, and a stream that played long enough clears the failure budget.
2026-08-12fix a bug where adding track using `now` when shuffle is on does not work as ↵salmon3-29/+149
expected
2026-08-12clean up readme and make install.sh activate rc.d servicesalmon2-42/+16
2026-08-12delete unused path for queuesalmon2-18/+6
2026-08-12queue logic fixessalmon2-29/+117
2026-08-09rc service: create state dir and log before daemon(8) startssalmon1-0/+8
2026-08-09Make daemon socket/PID paths environment-independent; fix rc service HOMEsalmon4-31/+68
2026-08-09Make install.sh POSIX sh so it runs without bashsalmon1-3/+3
2026-08-09Add FreeBSD rc.d service, install completions only for installed shellssalmon3-42/+147
2026-08-09Document FreeBSD requirements in READMEsalmon1-1/+32
2026-08-09Actual message when daemon could not be foundsalmon1-1/+22
2026-07-30Relative volume via prefixing/suffixing with +/-salmonik4-14/+175
2026-07-30Fix synchronous HTTP callssalmonik4-103/+122
2026-07-06add track index to MPRISsalmonik6-3/+12
2026-07-06add MPRIS support and non-blocking notifssalmonik7-29/+527
2026-06-25fix -a to work properlysalmonik2-75/+113
2026-06-25I love \rsalmonik1-1/+1
2026-06-23Add shell path finding as a fallback.salmonik6-46/+159
2026-06-12last autocompletion fixessalmonik1-1/+5
2026-06-12fix autocompletion scriptsalmonik1-2/+0
2026-06-12improved ZSH autocompletion scriptsalmonik2-5/+13
2026-06-09limit completions to LIMITsalmonik1-14/+36
2026-06-07change lrc lyrics display.salmonik3-27/+44
2026-06-07Add lyrics supportsalmonik5-15/+143
2026-06-06delete not needed md filesalmonik1-135/+0
2026-06-06correctly working auto completion for dbsalmonik12-262/+488
2026-06-04add verbosity to `rsp scan`salmonik1-3/+13
2026-06-04dirty, broken commitsalmonik9-30/+916
2026-05-27fix no metadata songs handlingsalmonik2-1/+12
format string is no longer used to represent songs that have insufficient metadata to fullfill the format string
2026-05-27Add internet streams supportsalmonik6-73/+310
2026-05-27play [track] [-a/--album] optionsalmonik3-2/+224
if supplied when a track is played, the rest of the album will be queued after the track
2026-05-26add licensingsalmonik21-79/+802
2026-05-26no need to ship completions anymore!salmonik5-1606/+20
2026-05-26bin size optimizations and queue stopping at the end of itsalmonik4-112/+20
2026-05-22Fix metadata extraction for symphonia 0.6 and add Albums shuffle modesalmonik10-28/+227
2026-05-18fix for new symphony API and less debug info in releasesalmonik9-354/+306
2026-05-16first public release.salmonik12-611/+115
2026-05-16Add scrobbling support (Last.fm + ListenBrainz) and rsp settings reloadsalmonik9-66/+735
- Full Last.fm API implementation with MD5 signing (track.updateNowPlaying, track.scrobble) - Full ListenBrainz API implementation (/1/submit-listens for playing_now and single) - ScrobbleState in daemon tracking track, start time, and unix timestamp per play - Scrobble threshold: ≥30s play AND (≥half duration OR ≥4 min) - Duration extraction from symphonia codec params into AudioMetadata and Track - Token validation at daemon startup and on config change - ListenBrainz token valid (user: Salmonium) command to re-read config from disk (avoids token in shell history) - Desktop notifications for token validation results - Empty-credential filtering (empty string = no-op)
2026-05-15aesthetic changessalmonik6-11/+33
2026-05-13Regenerate shell completions and install script fixessalmonik7-111/+657
- Add hidden completions subcommand to CLI (developer use only) - Regenerate all completion scripts from current CLI structure - Add elvish and powershell completion scripts - install.sh: Fix rsp stop -> rsp stop-daemon, rsp start -> rsp start-daemon - install.sh: Install completions for user's current shell - install.sh: Zsh uses /usr/share/zsh/site-functions/_rsp directly