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 9336cecc670c653d653adefb14ea439ab525255a
parent 3b8e236806251f4459b2245d62c161d303943221
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 13 Nov 2017 13:26:02 -0500

run mpc commands and put output in tmux status instead of opening new window

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 new-window -n mpc "mpc toggle" -bind -Tmpd s new-window -n mpc "mpc stop" -bind -Tmpd n new-window -n mpc "mpc next" -bind -Tmpd b new-window -n mpc "mpc prev" -bind -Tmpd r new-window -n mpc "mpc clear && mpc ls | mpc add && mpc random on && mpc play" +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 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