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 -- --help
cabal install
-
Got to Spotify dashboard and register an app
-
In options, set Redirect URIs to "http://localhost:7777/callback"
-
Install
sp
vianix
orcabal
. -
Run
sp authorize
and follow instructions (paste in client-id and client-secret from spotify application when prompted) -
Done!
Run authoration flow.
sp authorize
Play current song.
sp play
Pause current song.
sp pause
Skips to next track in queue.
sp next
Skips to previous track in queue.
sp prev
Replay current song from the beginning.
sp replay
Seeks to the given position in the currently playing track.
sp seek 60
Search for tracks.
sp track 'Ehtaa tavaraa'
Search for albums.
sp album 'After Hours'
You can develop sp
with cabal
.
cabal build all
cabal run sp
You 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 update
to update all flake inputs. - Run
just fmt
to run formatters. - Run
just docs
to start local hoogle server. - Run the application without installing:
nix run github:japiirainen/sp
(ornix run .
from checkout)