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:
parent
e500aaef7b
commit
effbc648f8
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user