Adjust wide window layouts for wider configs

This commit is contained in:
Kenneth Benzie 2025-11-18 10:36:30 +00:00
parent 19e9306008
commit 05c67a2e90
2 changed files with 18 additions and 8 deletions

View File

@ -1,6 +1,11 @@
#!/usr/bin/env -S tmux source-file
#!/usr/bin/env sh
split-window -h -l 43% -c '#{pane_current_path}'
select-pane -t 1
cols=`tmux display -p "#{pane_width}"`
# vim: ft=tmux
if [[ $cols -gt 300 ]]; then
tmux split-window -h -l 37% -c '#{pane_current_path}'
tmux select-pane -t 1
else
tmux split-window -h -l 43% -c '#{pane_current_path}'
tmux select-pane -t 1
fi

View File

@ -1,6 +1,11 @@
#!/usr/bin/env -S tmux source-file
#!/usr/bin/env sh
split-window -h -l 57% -c '#{pane_current_path}'
select-pane -t 1
cols=`tmux display -p "#{pane_width}"`
# vim: ft=tmux
if [[ $cols -gt 300 ]]; then
tmux split-window -h -l 63% -c '#{pane_current_path}'
tmux select-pane -t 1
else
tmux split-window -h -l 57% -c '#{pane_current_path}'
tmux select-pane -t 1
fi