From e3bc58091c1d3fb9f0fa560f91414569a2d0675f Mon Sep 17 00:00:00 2001 From: dummy Date: Sat, 7 Dec 2019 10:20:29 -0500 Subject: [PATCH] tmux_start: launch powermate script without destorying window --- bash_scripts/tmux_start.sh | 9 +++++---- dot/.tmux.conf | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bash_scripts/tmux_start.sh b/bash_scripts/tmux_start.sh index febce5a..609a9a5 100755 --- a/bash_scripts/tmux_start.sh +++ b/bash_scripts/tmux_start.sh @@ -12,10 +12,11 @@ if [ -n "$TMUX_PANE" ]; then # create a new default session else SESSION='default' - tmux -2 -C new -s $SESSION 'powermate_pactl.py' - tmux -C rename-window -t $SESSION powermate - tmux -C new-window -n dev -t $SESSION - tmux -C new-window -t $SESSION + tmux -2 -CC new -s $SESSION + tmux -CC rename-window -t $SESSION powermate + tmux send-keys -t $SESSION 'powermate_pactl.py' C-m + tmux -CC new-window -n dev -t $SESSION + tmux -CC new-window -t $SESSION tmux attach -t $SESSION fi diff --git a/dot/.tmux.conf b/dot/.tmux.conf index b3d012f..2294126 100644 --- a/dot/.tmux.conf +++ b/dot/.tmux.conf @@ -78,12 +78,12 @@ bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" -bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" +#bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" bind-key -T copy-mode-vi C-h select-pane -L bind-key -T copy-mode-vi C-j select-pane -D bind-key -T copy-mode-vi C-k select-pane -U bind-key -T copy-mode-vi C-l select-pane -R -bind-key -T copy-mode-vi C-\ select-pane -l +#bind-key -T copy-mode-vi C-\ select-pane -l # start new splits/windows with "pane_current_path" bind c new-window -c "#{pane_current_path}"