2

From my experience, (html, general computer stuff) the cordinates start in the top left as (0,0) and goes down to the bottom right depending on how big your screen is e.g. (800,600).

So why when I position gnome-terminal does it not go where I expect?

gnome-terminal --title="abvtrm" --geometry 80x10-0-0

This should go in the top left? But it goes centre right:

enter image description here

Why? And how do I get it in the top corner?

1

Alternatively follow the command:

gnome-terminal --title="abvtrm" --geometry 80x10+1366+768

(Here I used +1366+768 because of my screen resolution is 1366x768).

If your screen resolution is (let) n1xn2; then use it as follows:

gnome-terminal --title="abvtrm" --geometry 80x10+n1+n2

This will give output of opened window at bottom+right!


For quickly finding screen-resolution run following command:

$ xrandr --current | grep '*'
  • 1
    In my answer, n1=$(xrandr --current | grep '*' | cut -d " " -f 4 | cut -d "x" -f 1) & n2=$(xrandr --current | grep '*' | cut -d " " -f 4 | cut -d "x" -f 2). – Pandya Aug 26 '14 at 13:00
1

This is because of a small mistake in the command:

gnome-terminal --title="abvtrm" --geometry 80x10-0-0

will go to there - see the -0-0

gnome-terminal --title="abvtrm" --geometry 80x10+0+0

will go to the top - see the +0+0.

man X | grep corner 

Thanks @pandya

gives the following:

four corners of the screen using the following specifications:
       +0+0    upper left hand corner.
       -0+0    upper right hand corner.
       -0-0    lower right hand corner.
       +0-0    lower left hand corner.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.