Sunday, April 13, 2008

Open multiple terminal in arranged way in tile fashion

Being a system administrator is never an easy job. You are messed up with so many things that you dont know whats currently going through. No doubt you make your system superb but you never care the way you work, be it food, sleep or your place.

Today a small thing caught my eye. Usually if you see a linux user or admin's desktop they are all filled with terminals all messed up but yesterday I went to one of my friend and his terminals were arranged very nicely. See below.



With a help of small script four gnome-terminal will tile up for you. With his permission I have copied the script here.

#!/bin/bash
# Date: 12.Apr.2008
# Author: bash@roshankarki.com.np
# purpose: open four terminal in tile fashion
# Please note that you may need to adjust 69x22 if the screen looks to big or small.

gnome-terminal --geometry 69x22+0+0 --hide-menubar &
gnome-terminal --geometry 69x22-0+0 --hide-menubar &
gnome-terminal --geometry 69x22+0-0 --hide-menubar &
gnome-terminal --geometry 69x22-0-0 --hide-menubar &

#END


One more thing, if you already have terminal icon on your panel you can use it to lauch this script. Simply replace the Command with /bin/bash /path to script/sricptname.sh

No comments:

Post a Comment