Compare commits

..

No commits in common. "afe22855022de9093801d28816915a13ede63e45" and "18e631dc16ed63b0609c59425f65a61bad793740" have entirely different histories.

2 changed files with 5 additions and 18 deletions

13
mp
View file

@ -6,21 +6,18 @@
function mp { function mp {
FZF_DEFAULT_COMMAND="mpc ls" \ FZF_DEFAULT_COMMAND="mpc ls" \
fzf \ fzf \
--multi \
--bind 'ctrl-h:reload( \ --bind 'ctrl-h:reload( \
eval "$FZF_DEFAULT_COMMAND" eval "$FZF_DEFAULT_COMMAND"
)+change-preview-window(50%)+change-prompt(Artist> )' \ )' \
--bind 'ctrl-l:reload( \ --bind "ctrl-l:reload( \
mpc ls {} mpc ls {}
)+change-preview-window(50%)+change-prompt(Album> )' \ )" \
--bind 'enter:execute-silent( \ --bind 'enter:execute-silent( \
mpc clear && mpc add {+} && mpc play \ mpc clear && mpc add {} && mpc play \
)+clear-selection' \ )' \
--bind 'ctrl-u:execute-silent( \ --bind 'ctrl-u:execute-silent( \
mpc update mpc update
)' \ )' \
--bind 'ctrl-f:change-prompt(Playlist> )+reload(mpc playlist)+change-preview-window(hidden)' \
--bind 'ctrl-d:change-prompt(Database> )+reload(mpc listall)+change-preview-window(hidden)' \
--bind 'ctrl-space:execute-silent(mpc toggle)' \ --bind 'ctrl-space:execute-silent(mpc toggle)' \
--preview 'mpc ls {}' --preview 'mpc ls {}'
} }

10
mpx
View file

@ -1,10 +0,0 @@
#!/usr/bin/env zsh
(( height = $LINES - 3))
tmux new-session -d -s player 'watch -t -n 1 mpc status'
tmux split-window;
tmux select-pane -t 1;
tmux resize-pane -y $height;
tmux send 'mp' ENTER;
tmux attach