Skip to content

Instantly share code, notes, and snippets.

@v3n
Created August 15, 2011 02:15

Revisions

  1. Percussor created this gist Aug 15, 2011.
    29 changes: 29 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #!/bin/bash

    HEIGHT=`stty size | cut -d" " -f1`
    WIDTH=`stty size | cut -d" " -f2`

    if [ $WIDTH -gt 320 ]
    then
    #Set-up for a small screen.

    tmux new -d -x $WIDTH -y $HEIGHT -s jonathan

    tmux select-layout tiled
    tmux split-window -d -h -l 80 #vim1
    tmux split-window -d -h -l 80 #vim2
    tmux split-window -d -v -p 30 irssi #irssi
    tmux split-window -d -v -p 50
    tmux split-window -d -h -p 50

    tmux select-pane -t 2
    tmux split-window -d -h -p 50

    tmux attach -t jonathan


    else
    #Set-up for a small screen. (not sure if this works over SSH, probably will)
    echo "Too small"

    fi