feat: tmux wrapper for split pane via with np status

This commit is contained in:
Viktor Varland 2023-05-10 07:11:54 +02:00
parent a43d63442c
commit afe2285502
Signed by: varl
GPG key ID: 7459F0B410115EE8

10
mpx Executable file
View file

@ -0,0 +1,10 @@
#!/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