You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
454 B

#!/usr/bin/env sh
wmctrl -r :ACTIVE: -e 0,615,0,1938,1378
SESSION='dev'
if [ ! -n "$TMUX_PANE" ]; then
tmux -2 new -s $SESSION -d
tmux rename-window -t $SESSION dev
tmux splitw -h -t $SESSION
tmux send-keys -t $SESSION "vim" Enter
tmux selectp -t 0
tmux resizep -x 80 -t $SESSION
tmux splitw -v -l 24 -t $SESSION
tmux selectp -t 2
tmux send-keys -t $SESSION ":80vs" Enter
tmux attach -t $SESSION
else
echo "don't run in tmux session"
fi