diff --git a/.tmux.conf b/.tmux.conf index 024c2e4..142d5f3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -205,12 +205,12 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # window=$(tmux new-window -t "$current_session:" -P "exec maximized... 2> /dev/null & tmux setw -t \"$current_session:\" remain-on-exit on; printf \"Pane has been maximized, press + to restore. %s\" '$current_pane'") # window=${window%.*} # -# guard=10 -# while [ x"$(tmux list-panes -t "$window" -F '#{session_name}:#{window_index} #{pane_dead}' 2>/dev/null)" != x"$window 1" ] && [ "$guard" -ne 0 ]; do -# sleep 0.01 -# guard=$((guard - 1)) +# retry=10 +# while [ x"$(tmux list-panes -t "$window" -F '#{session_name}:#{window_index} #{pane_dead}' 2>/dev/null)" != x"$window 1" ] && [ "$retry" -ne 0 ]; do +# sleep 0.05 +# retry=$((retry - 1)) # done -# if [ "$guard" -eq 0 ]; then +# if [ "$retry" -eq 0 ]; then # tmux display 'Unable to maximize pane' # fi #