Spotify for the terminal written in Rust 🚀
A Spotify client for the terminal written in Rust.
The terminal in the demo above is using the Rigel theme.
The binary executable is spt.
For both macOS and Linux
brew install spotify-tuiTo update, run
brew upgrade spotify-tuiFor a system with Snap installed, run
snap install sptThe stable version will be installed for you automatically.
If you want to install the nightly build, run
snap install spt --edgeFor those on Arch Linux you can find the package on AUR here. If however you're using an AUR helper you can install directly from that, for example (in the case of yay), run
yay -S spotify-tuiAvailable as the package spotify-tui. To install run:
nix-env -iA nixpkgs.spotify-tuiWhere nixpkgs is the channel name in your configuration. For a more up-to-date installation, use the unstable channel.
It is also possible to add the package to environment.systemPackages (for NixOS), or home.packages when using home-manager.
Available on the official repositories. To install, run
sudo xbps-install -Su spotify-tuiAvailable on the Copr repositories. To install, run
sudo dnf copr enable atim/spotify-tui -y && sudo dnf install spotify-tuiUse this option if your architecture is not supported by the pre-built binaries found on the releases page.
First, install Rust (using the recommended rustup installation method) and then
cargo install spotify-tuiThis method will build the binary from source.
To update, run the same command again.
For compilation on Linux the development packages for libssl are required.
For basic installation instructions, see install OpenSSL.
In order to locate dependencies, the compilation also requires pkg-config to be installed.
If you are using the Windows Subsystem for Linux, you'll need to install additional dependencies.
First, make sure scoop installer is on your windows box, for instruction please visit scoop.sh
Then open powershell and run following two commands:
scoop bucket add scoop-bucket https://github.com/Rigellute/scoop-bucket
scoop install spotify-tuiAfter that program is available as: spt or spt.exe
cd to the file you just downloaded and unzipcd to spotify-tui and run with ./sptspotify-tui needs to connect to Spotify’s API in order to find music by
name, play tracks etc.
Instructions on how to set this up will be shown when you first run the app.
But here they are again:
Create an appClient ID and Client SecretEdit Settingshttp://localhost:8888/callback to the Redirect URIsSavesptClient IDClient SecretAnd now you are ready to use the spotify-tui 🎉
You can edit the config at anytime at ${HOME}/.config/spotify-tui/client.yml. (for snap ${HOME}/snap/spt/current/.config/spotify-tui/client.yml)
The binary is named spt.
Running spt with no arguments will bring up the UI. Press ? to bring up a help menu that shows currently implemented key events and their actions.
There is also a CLI that is able to do most of the stuff the UI does. Use spt --help to learn more.
Here are some example to get you excited.
…A configuration file is located at ${HOME}/.config/spotify-tui/config.yml, for snap ${HOME}/snap/spt/current/.config/spotify-tui/config.yml
(not to be confused with client.yml which handles spotify authentication)
The following is a sample config.yml file:
…This app uses the Web API from Spotify, which doesn't handle streaming itself. So you'll need either an official Spotify client open or a lighter weight alternative such as spotifyd.
If you want to play tracks, Spotify requires that you have a Premium account.
Follow the spotifyd documentation to get set up.
After that there is not much to it.
sptd to go to the device selection menu and the spotifyd "device" should be there - if not check these docsxorg-dev (required for clipboard support)cd to itcargo runYou might get a linking error. If so, you'll probably need to install additional dependencies required by the clipboard package
sudo apt-get install -y -qq pkg-config libssl-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-devThanks goes to these wonderful people (emoji key):
Project Update
Continuation of spotify-tui under active fork: spotatui
installation failed
Spotify auth failed
cannot find derive macro `RustcEncodable` in this scope
packages no longer in homebrew
INVALID_CLIENT: Invalid redirect URI
spt keeps returning to error when I connect to Sonos
Unable to setup INVALID_CLIENT
can't connect to spotify API after spotify API update