Use TMUX_LAYOUT_FULLSCREEN instead of heuristic

Only change `window-wide-left`/`window-wide-right` to 63%/37% split when
`TMUX_LAYOUT_FULLSCREEN=1`.
This commit is contained in:
Kenneth Benzie 2025-11-23 10:42:36 +00:00
parent e500aaef7b
commit effbc648f8
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
cols=`tmux display -p "#{pane_width}"`
if [[ $cols -gt 300 ]]; then
if [ "$LAYOUT_FULLSCREEN" = "1" ]; then
tmux split-window -h -l 37% -c '#{pane_current_path}'
tmux select-pane -t 1
else

View File

@ -2,7 +2,7 @@
cols=`tmux display -p "#{pane_width}"`
if [[ $cols -gt 300 ]]; then
if [ "$TMUX_LAYOUT_FULLSCREEN" = "1" ]; then
tmux split-window -h -l 63% -c '#{pane_current_path}'
tmux select-pane -t 1
else