#! /bin/zsh

NICE_ROOT_CMD="sudo ionice -c 3 nice su -"
ANGRY_ROOT_CMD="sudo su -"

# spawn the session but don't attach yet
tmux new-session -d -s Main

# first window is already there
tmux send-keys -l "${NICE_ROOT_CMD}" $'\n'

# second nice window
tmux new-window
tmux send-keys -l "${NICE_ROOT_CMD}" $'\n'

# and one angry window
tmux new-window
tmux send-keys -l "${ANGRY_ROOT_CMD}" $'\n'

# attach, finally
tmux attach-session -t Main
