diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index f321425..0d88222 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -48,6 +48,7 @@ bind C-q confirm-before -p "kill other windows? (y/n)" "kill-window -a" bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'" bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'" + # SSH Session bind h command-prompt -p "Remote host:" "new-session -n 1 -s 'ssh-%1' -A ssh %1" @@ -138,6 +139,10 @@ bind -n 'M-(' if-shell 'tmux join-pane -d -h -t :9' '' 'break-pane -t 9 -d -n 9' bind -n 'M-)' if-shell 'tmux join-pane -d -h -t :10' '' 'break-pane -t 10 -d -n 10' +# Hide pane +bind -n M-q if-shell 'tmux join-pane -d -s stash' '' 'break-pane -d -n stash' + + # Swapping windows bind -r "<" swap-window -d -t -1 bind -r ">" swap-window -d -t +1 @@ -150,6 +155,10 @@ bind \\ split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" +# Default layout size +bind u resize-pane -x 71% + + # Copy mode setw -g mode-keys vi bind v copy-mode diff --git a/home/user/.tmux/01.sh b/home/user/.tmux/01.sh index f5febe7..9bc3c7c 100755 --- a/home/user/.tmux/01.sh +++ b/home/user/.tmux/01.sh @@ -11,7 +11,7 @@ if ! tmux has-session -t "$SESSION"; then tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT" tmux send-keys -t "$SESSION:$MAINW" '$EDITOR' Enter tmux send-keys -t "$SESSION:$MAINW" , f f - tmux splitw -t "$SESSION:$MAINW" -d -b -h -l 30% -c '#{pane_current_path}' + tmux splitw -t "$SESSION:$MAINW" -d -b -h -l 29% -c '#{pane_current_path}' fi tmux switch-client -t "$SESSION" \ No newline at end of file