quick and dirty script to play a track from your cmus library using fzf
- install fzf
- run
cmus-fzf
I run mine in a tmux popup when using cmus. from my cmus rc:
bind -f library S shell tmux popup -e FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS" -w 60% -h 60% -E /path/to/cmus-fzf/cmus-fzf- and press
S
you could also bind this globally within tmux to do this from any application, e.g. to control your music within vim :)
bind-key S run-shell 'tmux popup -E /path/to/cmus-fzf/cmus-fzf || true'
you can spawn a lightweight terminal to run the script globally in your desktop environment or within cmus
e.g. with a cmus keybind
bind -f library S shell st -e '/path/to/cmus-fzf/cmus-fzf'
- gavtory for their help
- some fzf selection code from lincheney/fzf-tab-completion
- and of course fzf
