Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Feqzz/tmux-spotify-info

🎵 Displays the current song playing with Spotify in your tmux status bar.
https://github.com/Feqzz/tmux-spotify-info

bash-script dbus-api spotify tmux tmux-plugin

Last synced: about 2 months ago
JSON representation

🎵 Displays the current song playing with Spotify in your tmux status bar.

Awesome Lists containing this project

README

        

# tmux-spotify-info
Displays the current song playing with Spotify in your tmux status bar. When playback is paused, a pause icon is displayed next to the artist.
![](https://feqzz.no/img/tmux-spotify-info-example.png)

## Installation
Dependencies:
* dbus

### Installation with Tmux Plugin Manager
Edit your `.tmux.conf` and append the plugin to your TPM list.

```tmux
set -g @plugin 'feqzz/tmux-spotify-info'
```
Remember to hit ` + I` to install the plugin.

### Manual
Clone the repo:
``` bash
git clone https://github.com/feqzz/tmux-spotify-info ~/.tmux/
```
Edit your `.tmux.conf` and add this line at the bottom.
``` bash
run-shell ~/.tmux/tmux-spotify-info/tmux-spotify-info.tmux
```
Last step is to reload the tmux config file.
``` bash
tmux source-file ~/.tmux.conf
```

## Usage
Edit your `.tmux.conf` file and add `#{spotify_info}` to your `status-right`. Simple example:
``` tmux
set -g status-right "#{spotify_info}"
```
As the length of some song titles can be very long, it can be useful to add this line to your `.tmux.conf` to avoid overflow.
``` tmux
set -g status-right-length 200
```
## License
[MIT](LICENSE.md)