gspot/README.md

83 lines
2.3 KiB
Markdown
Raw Permalink Normal View History

2024-08-28 05:37:59 +00:00
IF YOU ARE ON GITHUB.COM GO HERE INSTEAD: https://git.asdf.cafe/abs3nt/gspot
2024-02-19 21:33:36 +00:00
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.
---
2024-08-28 05:37:59 +00:00
2024-02-19 21:33:36 +00:00
[![status-badge](https://ci.asdf.cafe/api/badges/abs3nt/gspot/status.svg)](https://ci.asdf.cafe/abs3nt/gspot)
# To install (with a package manager):
## Archlinux ([AUR])
2024-08-28 05:37:59 +00:00
`yay -S gspot-git`
2024-02-19 21:33:36 +00:00
2024-08-28 05:37:59 +00:00
# To build from source by pulling and building the binary
2024-02-19 21:33:36 +00:00
2024-08-28 05:37:59 +00:00
`git clone https://git.asdf.cafe/abs3nt/gspot`
2024-02-19 21:33:36 +00:00
2024-08-28 05:37:59 +00:00
`cd gspot`
2024-02-19 21:33:36 +00:00
2024-08-28 05:37:59 +00:00
`make build && sudo make install`
2024-02-19 21:33:36 +00:00
[AUR]: https://aur.archlinux.org/packages/gspot-git
# Configuration
2024-08-28 05:37:59 +00:00
2024-02-19 21:33:36 +00:00
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:
2024-08-28 05:37:59 +00:00
`http://localhost:8888/callback`
2024-02-19 21:33:36 +00:00
add your information to ~/.config/gspot/gspot.yml like this
```
client_id: "idgoeshere"
client_secret: "secretgoeshere"
port: "8888"
```
2024-08-28 05:37:59 +00:00
2024-02-19 21:33:36 +00:00
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
2024-08-28 05:37:59 +00:00
`gspot`
2024-02-19 21:33:36 +00:00
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:
2024-08-28 05:37:59 +00:00
`gspot radio`
2024-02-19 21:33:36 +00:00
2024-08-28 05:37:59 +00:00
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.
2024-02-19 21:33:36 +00:00
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:
2024-08-28 05:37:59 +00:00
`gspot --help`
2024-02-19 21:33:36 +00:00
Very open to contributations feel free to open a PR
[tmux plugin](https://git.asdf.cafe/abs3nt/tmux-gspot)
[wiki](https://git.asdf.cafe/abs3nt/gspot/wiki)