dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 1ffc3599dd650885c8b4e74c061f8ed2abf7bff4
parent 9336cecc670c653d653adefb14ea439ab525255a
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 13 Nov 2017 13:34:24 -0500

update mpc output formatting

Diffstat:
Mlinks/.tmux.conf | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/links/.tmux.conf b/links/.tmux.conf @@ -129,11 +129,11 @@ bind-key Enter new-window \ # Use nested bindings (<C-a>m) for grouping music-control bindings bind m switchc -Tmpd bind -Tmpd v new-window -n vimpc "vimpc" -bind -Tmpd p display "#(mpc toggle | tail -n 2 | head -n 1)" -bind -Tmpd s display "#(mpc stop | tail -n 2 | head -n 1)" -bind -Tmpd n display "#(mpc next | tail -n 2 | head -n 1)" -bind -Tmpd b display "#(mpc prev | tail -n 2 | head -n 1)" -bind -Tmpd r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc play | tail -n 2 | head -n 1)" +bind -Tmpd p display "#(mpc toggle | tr '\n' ' ')" +bind -Tmpd s display "#(mpc stop | tr '\n' ' ')" +bind -Tmpd n display "#(mpc next | tr '\n' ' ')" +bind -Tmpd b display "#(mpc prev | tr '\n' ' ')" +bind -Tmpd r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc play | tr '\n' ' ')" #bind -Tmpd r new-window -n mpc "mpc clear && mpc ls | mpc add && mpc shuffle && mpc play" # Use alternate prefix (C-b) for grouping music-control bindings