#!/bin/bash
tmux kill-session -t spot 2>/dev/null

tmux new-session -d -s spot -n bridge
tmux send-keys -t spot:bridge \
  'cd ~/hand-gesture-spot-control && source venv/bin/activate && source ~/.spot_env && python spot_bridge.py' C-m

sleep 5

tmux split-window -h -t spot:bridge
tmux send-keys -t spot:bridge.1 \
  'cd ~/hand-gesture-spot-control && source venv/bin/activate && python predict_headless.py' C-m

tmux attach -t spot
