fix: pane indices match pane-base-index=1
tmux.conf sets pane-base-index 1, but dev-session.sh was referencing panes starting at .0. All splits and send-keys silently failed, leaving a single empty pane with no dashboard.
This commit is contained in:
@@ -23,30 +23,30 @@ tmux send-keys -t "$SESSION:1" "hermes" Enter
|
||||
tmux new-window -t "$SESSION" -n "timmy-loop"
|
||||
|
||||
# Vertical split: left | right
|
||||
tmux split-window -h -t "$SESSION:2.0"
|
||||
tmux split-window -h -t "$SESSION:2.1"
|
||||
|
||||
# Horizontal split on left: top-left / bottom-left
|
||||
tmux split-window -v -t "$SESSION:2.0"
|
||||
tmux split-window -v -t "$SESSION:2.1"
|
||||
|
||||
# Pane map:
|
||||
# 0 = top-left → Loop
|
||||
# 1 = bottom-left → Hermes Chat (in Timmy dir)
|
||||
# Pane map (pane-base-index = 1):
|
||||
# 1 = top-left → Loop
|
||||
# 3 = bottom-left → Hermes Chat (in Timmy dir)
|
||||
# 2 = right → Status Dashboard
|
||||
|
||||
# Set pane titles
|
||||
tmux select-pane -t "$SESSION:2.0" -T "Loop"
|
||||
tmux select-pane -t "$SESSION:2.1" -T "Chat"
|
||||
tmux select-pane -t "$SESSION:2.1" -T "Loop"
|
||||
tmux select-pane -t "$SESSION:2.3" -T "Chat"
|
||||
tmux select-pane -t "$SESSION:2.2" -T "Status"
|
||||
|
||||
# Resize: give right pane ~40 cols for status
|
||||
tmux resize-pane -t "$SESSION:2.2" -x 45
|
||||
|
||||
# Start processes
|
||||
tmux send-keys -t "$SESSION:2.0" \
|
||||
tmux send-keys -t "$SESSION:2.1" \
|
||||
"export PATH=\"$HOME/.local/bin:$HOME/.hermes/bin:/usr/local/bin:\$PATH\" && $HOME/.hermes/bin/timmy-loop.sh" Enter
|
||||
tmux send-keys -t "$SESSION:2.2" \
|
||||
"$HOME/.hermes/bin/timmy-status.sh" Enter
|
||||
tmux send-keys -t "$SESSION:2.1" \
|
||||
tmux send-keys -t "$SESSION:2.3" \
|
||||
"cd ~/Timmy-Time-dashboard && hermes" Enter
|
||||
|
||||
# Focus: start on hermes window
|
||||
|
||||
Reference in New Issue
Block a user