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.
Dependencies:
- dbus
Edit your .tmux.conf
and append the plugin to your TPM list.
set -g @plugin 'feqzz/tmux-spotify-info'
Remember to hit <prefix> + I
to install the plugin.
Clone the repo:
git clone https://github.com/feqzz/tmux-spotify-info ~/.tmux/
Edit your .tmux.conf
and add this line at the bottom.
run-shell ~/.tmux/tmux-spotify-info/tmux-spotify-info.tmux
Last step is to reload the tmux config file.
tmux source-file ~/.tmux.conf
Edit your .tmux.conf
file and add #{spotify_info}
to your status-right
. Simple example:
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.
set -g status-right-length 200