Is there a way to remember terminal position?

Asked by John Salerno

Is there a way to save a specific on-screen position for the terminal window, so when you start it up in the future it remains in the same place as before?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Jean-Baptiste Lallement
Solved:
Last query:
Last reply:
Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#1

I am afraid that this feature doesn't exist in gnome despite all the users claiming for its implementation.

There are currently at least 2 threads on Brainstorm talking about it:
- http://brainstorm.ubuntu.com/idea/3654/
- http://brainstorm.ubuntu.com/idea/1442/

However, you may start a terminal with a particular size and position by using the --geometry option of gnome-terminal.

For instance the command "gnome-terminal --geometry=132x40+0-0" will open a terminal with a width of 132 characters, height 40 characters on the lower (-0) left (+0) corner of your screen.

Revision history for this message
John Salerno (johnjsal) said :
#2

Thanks! That will probably do the trick anyway. How do I figure out the coordinates for the upper left of the screen? Is it based on my screen resolution?

Revision history for this message
Best Jean-Baptiste Lallement (jibel) said :
#3

+0+0 is the upper left. A minus sign indicates to start from the opposite. So -0-0 is the lower right.

You can get information about an opened window with xwinfo and selecting the desired window. The line -geometry returns the size and position of the window.

Revision history for this message
John Salerno (johnjsal) said :
#4

Thanks Jean-Baptiste Lallement, that solved my question.

Revision history for this message
John Salerno (johnjsal) said :
#5

Thanks!