Adds an embeddable cmus status widget anywhere on your tmux status bar. Automatically truncates.
Only tested on OSX, windows support forthcomming (switching back to Windows personally)
The icon indicates whether cmus is actually playing
Binds to F7, F8, F9 simulating the OSX media keyboard to stop/resume/next/prev
The status bar attaches to a running cmus instance, so you'll need cmus installed and running
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'Mpdreamz/tmux-cmus'
Hit prefix + I
to fetch the plugin and source it. You should now be able to
use the plugin.
Clone the repo:
$ git clone https://github.com/Mpdreamz/tmux-yank ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/yank.tmux
Reload TMUX environment:
# type this in terminal
$ tmux source-file ~/.tmux.conf
You should now be able to use the plugin.
Add #{cmus_status}
to either status_right
or status_left