Browse Source

tmux_start: launch powermate script without destorying window

master
dummy 7 years ago
parent
commit
e3bc58091c
  1. 9
      bash_scripts/tmux_start.sh
  2. 4
      dot/.tmux.conf

9
bash_scripts/tmux_start.sh

@ -12,10 +12,11 @@ if [ -n "$TMUX_PANE" ]; then
# create a new default session # create a new default session
else else
SESSION='default' SESSION='default'
tmux -2 -C new -s $SESSION 'powermate_pactl.py' tmux -2 -CC new -s $SESSION
tmux -C rename-window -t $SESSION powermate tmux -CC rename-window -t $SESSION powermate
tmux -C new-window -n dev -t $SESSION tmux send-keys -t $SESSION 'powermate_pactl.py' C-m
tmux -C new-window -t $SESSION tmux -CC new-window -n dev -t $SESSION
tmux -CC new-window -t $SESSION
tmux attach -t $SESSION tmux attach -t $SESSION
fi fi

4
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-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-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-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-h select-pane -L
bind-key -T copy-mode-vi C-j select-pane -D 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-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R 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" # start new splits/windows with "pane_current_path"
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"

Loading…
Cancel
Save