Skip to content

Instantly share code, notes, and snippets.

@v3n
Created August 15, 2011 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v3n/1145601 to your computer and use it in GitHub Desktop.
Save v3n/1145601 to your computer and use it in GitHub Desktop.
Shell of TMUX Config
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment