2020-03-01 19:59:28 +00:00
# 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

2020-02-24 02:47:42 +00:00
2020-11-18 18:17:45 +00:00
# Install
## 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:17:45 +00:00
`apt install pulseaduio`
2020-11-08 18:22:32 +00:00
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`
2020-03-01 19:59:28 +00:00
`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
2020-09-25 15:05:36 +00:00
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
2020-03-01 19:59:28 +00:00
`di-tui`