diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 5800fc8..eeb6f3d 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -148,15 +148,18 @@ bind -r "<" swap-window -d -t -1 bind -r ">" swap-window -d -t +1 +_tmux_new_pane_size="30%" +_tmux_main_pane_size="70%" + # Windows splitting -bind -n M-Enter split-window -h -l 37% -c "#{pane_current_path}" +bind -n M-Enter split-window -h -b -l $_tmux_new_pane_size -c "#{pane_current_path}" bind -n M-t split-window -v -l 20% -c "#{pane_current_path}" bind \\ split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" # Default layout size -bind -n M-u resize-pane -x 70% +bind -n M-u resize-pane -x $_tmux_main_pane_size # Copy mode diff --git a/home/user/.tmux/01.sh b/home/user/.tmux/01.sh index f5febe7..3f37d40 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 $_tmux_new_pane_size -c '#{pane_current_path}' fi tmux switch-client -t "$SESSION" \ No newline at end of file