https://github.com/jrock2004/tmux-spotify
A bash script to get Spotify information that is playing
https://github.com/jrock2004/tmux-spotify
spotify-cli tmux
Last synced: 7 months ago
JSON representation
A bash script to get Spotify information that is playing
- Host: GitHub
- URL: https://github.com/jrock2004/tmux-spotify
- Owner: jrock2004
- License: mit
- Created: 2017-02-22T22:27:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T23:38:24.000Z (almost 9 years ago)
- Last Synced: 2025-03-28T18:30:42.400Z (11 months ago)
- Topics: spotify-cli, tmux
- Language: Shell
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tmux-spotify
A little script that is based heavily on a script from https://github.com/wandernauta
## Use Case
This is to be used in your tmux status line. If you want full terminal access you will want to use Wander script for
that. If can be found https://gist.githubusercontent.com/wandernauta/6800547/raw/db881a9100eb9b1e684c99962bde086a47ebcf08/sp
## Configuration
There is one configuration option in the bash script. If you open it in your text editor, there is a variable on the top called `CHAR_LENGTH`. This variable will trim the song title if its too long.
## Install
Download or clone this repo and copy the tmux-spotify file to a location in your PATH so tmux can access it. Then you will want to edit your tmux.conf and set the following
```
set -g status-right $(tmux-spotify both)
```
This will display a ♫, the artist, and the title of the song

If you do not like the icon or the way it outputs, you can call other params
```
set -g status-right $(tmux-spotify artist)
or
set -g status-right $(tmux-spotify title)
```