ubuntu – Open New Window from Shell with Specific Size and Position

Ubuntuxorg

For example, say I wanted to start gnome-terminal with it's northwest corner at 0,0, and make the window 736×434 pixels (apparently the default, which allows for an an 80-character by 24-character terminal window).

I'm not sure how much of this matters, but I'm using Ubuntu 11.04 with GNOME 3, and whatever versions of Xorg and the window manager (metacity? compiz?) come with that distro.

Best Answer

I don't know about gnome-terminal specifically, but you can place the standard xterm with a specific columns and rows size like this:

xterm -geometry 80x24+50+100

That's an 80 column, 24-line xterm, with the northwest corder at (50, 100). I believe X11 does it's coords in (x,y) where the upper left corner of the screen is (0,0) and coordinates get bigger to the right and down.