tmux/layouts/window-wide-right

12 lines
258 B
Bash
Executable File

#!/usr/bin/env bash
cols=`tmux display -p "#{pane_width}"`
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