Open terminal on start in a specific place and size

23,093

Solution 1

The command is:

gnome-terminal --geometry=widthxheight+Xposition+Yposition

Add it under System -> Preferences ->Startup applications.

Solution 2

--geometry GEOMETRY

Specifies the startup geometry for this terminal. The geometry specifies the desired width and height in terminal characters. For example: --geometry=80x40 will create an eighty-column by forty-line terminal. You can also specify the location of the terminal Window on the screen; for example, --geometry=80x40+100+200 will create a Window whose top left corner is 100 pixels to the right and 200 pixels down from the top left corner of the screen, while --geometry=80x40+100-200 will give a Window whose bottom left corner is 100 pixels to the right and 200 pixels up from the bottom left corner of the screen.

Source

Example: gnome-terminal --geometry=80x40+100+200

To make it so it always keep that setting:

sudo gedit /usr/share/vte/termcap/xterm 

Locate something simliar to:

:co#80:it#8:li#24:\

co is column number and li is row number.

Not sure how to change the location in that file though, sorry.

Share:
23,093

Related videos on Youtube

Itay Moav -Malimovka
Author by

Itay Moav -Malimovka

Updated on September 17, 2022

Comments

  • Itay Moav -Malimovka
    Itay Moav -Malimovka over 1 year

    I want that each time I login to my account (Ubuntu-desktop) a Terminal will open in a specific location and in a specific size.
    In which file do I put the command, and what is the command?

  • hello_there_andy
    hello_there_andy almost 9 years
    Where is System?
  • FoxyLad
    FoxyLad over 8 years
    Under Ubuntu 14.04.3 LTS Trusty Tahr, the position seems to have the origin top-left, so the example above would show the window 100 pixels to the right and 200 pixels DOWN from the TOP left corner of the screen.
  • Eugen Konkov
    Eugen Konkov about 7 years
    How to control the monitor number?
  • Eugen Konkov
    Eugen Konkov about 7 years
    @hello_there_andy: Maybe System settings? I am on Linux mint and it is called System settings
  • RNA
    RNA over 6 years
    if you want to open on a sub monitor, starting X location would be width of main + x location on sub