Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Feqzz/tmux-spotify-info
- Owner: Feqzz
- License: mit
- Created: 2021-03-06T10:42:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T14:51:09.000Z (over 1 year ago)
- Last Synced: 2024-08-04T04:06:27.488Z (5 months ago)
- Topics: bash-script, dbus-api, spotify, tmux, tmux-plugin
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tmux - tmux-spotify-info
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)