#!/bin/sh
#
# start-tmux - session with 2 windows + 2 panes/windows

tmux new-session -d -s standard
STATUS=$?

if [ "${STATUS}" -eq 0 ]; then
  tmux new-window -tstandard -n multishell
  tmux split-window -h
  tmux split-window -v
  tmux select-pane -tstandard:multishell.1
  tmux split-window -v
  tmux new-window -tstandard -n diagnostic
  tmux split-window -h htop
  tmux split-window -v bmon
  tmux select-pane -tstandard:diagnostic.1
  tmux split-window -v
fi

exec tmux attach -tstandard:multishell.1
