sp
You can install sp via the following mechanisms.
sp is a nix flake, so you can run it directly from this github repo without installing at all!
nix run github:japiirainen/sp -- --helpcabal install-
Got to Spotify dashboard and register an app
-
In options, set Redirect URIs to "http://localhost:7777/callback"
-
Install
spvianixorcabal. -
Run
sp authorizeand follow instructions (paste in client-id and client-secret from spotify application when prompted) -
Done!
Run authoration flow.
sp authorizePlay current song.
sp playPause current song.
sp pauseSkips to next track in queue.
sp nextSkips to previous track in queue.
sp prevReplay current song from the beginning.
sp replaySeeks to the given position in the currently playing track.
sp seek 60Search for tracks.
sp track 'Ehtaa tavaraa'Search for albums.
sp album 'After Hours'You can develop sp with cabal.
cabal build all
cabal run spYou can alternatively use nix for dev environment and for building the project.
Build:
nix build .Run:
nix run .Start Nix shell:
nix-shell- Run
nix flake updateto update all flake inputs. - Run
just fmtto run formatters. - Run
just docsto start local hoogle server. - Run the application without installing:
nix run github:japiirainen/sp(ornix run .from checkout)