Go to file
Renovate Bot f8fd8fa2dd
Some checks failed
builder / build (push) Failing after 25s
fix(deps): update module google.golang.org/api to v0.213.0
2024-12-17 14:49:53 -08:00
.gitea/workflows chore(deps): update actions/checkout action to v4 (#11) 2024-07-06 20:56:31 +00:00
completions better completions 2024-04-02 21:30:26 -07:00
src refill 2024-08-22 00:35:50 -07:00
.gitignore ignore 2024-02-18 18:53:02 -08:00
.golangci.yml cleanup 2024-02-18 20:00:15 -08:00
.goreleaser.yaml update 2024-05-30 15:19:52 -07:00
go.mod fix(deps): update module google.golang.org/api to v0.213.0 2024-12-17 14:49:53 -08:00
go.sum fix(deps): update module google.golang.org/api to v0.213.0 2024-12-17 14:49:53 -08:00
LICENSE license 2024-02-19 17:21:17 -08:00
main.go remove imports 2024-07-06 14:05:01 -07:00
Makefile move 2024-02-23 12:48:32 -08:00
README.md rm 2024-08-27 22:37:59 -07:00
renovate.json Update renovate.json 2024-07-06 20:33:53 +00:00

IF YOU ARE ON GITHUB.COM GO HERE INSTEAD: https://git.asdf.cafe/abs3nt/gspot

If you open an issue or PR on github I won't see it please use git.asdf.cafe. Register on asdf and open your PRs there

This project is still under heavy development and some things might not work or not work as intended. Don't hesitate to open an issue to let me know.


status-badge

To install (with a package manager):

Archlinux (AUR)

yay -S gspot-git

To build from source by pulling and building the binary

git clone https://git.asdf.cafe/abs3nt/gspot

cd gspot

make build && sudo make install

Configuration

go here https://developer.spotify.com/dashboard/applications to make a spotify application. you will need a client ID and a client secret. Set your redirect uri like this:

http://localhost:8888/callback

add your information to ~/.config/gspot/gspot.yml like this

client_id: "idgoeshere"
client_secret: "secretgoeshere"
port: "8888"

if you dont want to store your secret in the file in plaintext you can use a command to retreive it:

client_secret_cmd: "secret spotify_secret"

you should have either client_secret or client_secret_cmd

you can enable debug logging by adding

log_level: "debug"
log_output: "file"

it will log to ~/.config/gspot/gspot.log

RUNNING

gspot

you will be asked to login, you will only have to do this the first time. After login you will be asked to select your default device.

helpful keybinds are shown in the bottom of the screen, hit ? to see all of them

To use the custom radio feature:

gspot radio

or hit ctrl+r on any track in the TUI. This will start an extended radio. To replenish the current radio run gspot refillradio and all the songs already listened will be removed and that number of new recomendations will be added.

This radio uses slightly different logic than the standard spotify radio to give a longer playlist and more recomendation. With a cronjob you can schedule refill to run to have an infinite and morphing radio station.

To view help:

gspot --help

Very open to contributations feel free to open a PR

tmux plugin

wiki