di-tui/README.md

58 lines
1.5 KiB
Markdown
Raw Normal View History

# di-tui
2020-11-15 17:05:46 +00:00
A simple terminal UI player for [di.fm Premium](http://di.fm)
2020-03-02 01:57:23 +00:00
2020-05-09 18:10:41 +00:00
![App Screenshot](https://user-images.githubusercontent.com/3331648/81481515-bb668400-91fe-11ea-8a7c-39e1bb76c55d.png)
2020-02-24 02:47:42 +00:00
2020-12-03 19:33:07 +00:00
# Dependencies
2020-02-24 02:47:42 +00:00
2020-11-15 17:05:46 +00:00
## PulseAudio
Both linux and MacOS depend on pulseaudio to be running.
### MacOS
By default, pulseaudio on MacOS runs as "root", which is not ideal. PulseAudio is best run by non-root users. By symbolically linking the pulseaudio plist file into your user's `~/Library/LaunchAgents/`, it runs as your user.
2020-02-24 02:47:42 +00:00
2020-11-15 17:05:46 +00:00
```
brew install pulseaudio
ln -s $(brew info pulseaudio | grep "/usr/local/Cellar" | awk '{print $1}')//homebrew.mxcl.pulseaudio.plist ~/Library/LaunchAgents
brew services start pulseaudio
```
2020-11-08 18:22:32 +00:00
### Linux
2020-11-18 18:18:16 +00:00
`apt install pulseaudio`
2020-11-08 18:22:32 +00:00
2020-12-03 19:33:07 +00:00
# Install
2020-04-11 15:23:36 +00:00
## Binary Releases
2020-11-15 17:05:46 +00:00
There are binary builds available in [releases](https://github.com/acaloiaro/di-tui/releases).
2020-04-11 15:23:36 +00:00
2020-03-01 22:56:36 +00:00
## With `go get`
`go get -u github.com/acaloiaro/di-tui`
2020-02-24 02:47:42 +00:00
2020-03-01 22:56:36 +00:00
If `$GOPATH/bin` is not on your `$PATH` (modify accordingly for ZSH users `~/.zshrc`)
2020-03-01 22:54:39 +00:00
```
echo "export PATH=$PATH:$GOPATH/bin" >> ~/.bashrc
source ~/.bashrc
```
If your `$GOPATH` is not set, see https://github.com/golang/go/wiki/SettingGOPATH
2020-02-24 02:47:42 +00:00
# Authenticate
There are two authentication options
- Enter your username and password directly into `di-tui`
- If you're justifiably uncomfortable with entering your username/password into this application, copy your "Listen Key" from (https://www.di.fm/settings) and create the following file:
## ~/.config/di-tui/config.yml
```yml
token: <YOUR LISTEN KEY>
```
2020-02-24 02:47:42 +00:00
# Run
`di-tui`