macossshx11xquartz

X keeps opening offscreen


I am ssh-ing into my pi with

ssh pi@rpi.local -Y

in order to transmit an X window. The window opens, but extremely far offscreen, I have to resize my screen multiple times randomly in order to make it visible.

Question: is it possible to move the window automatically

or: where do I set the standard X window position / offset?


Solution

  • With -geometry:

    xterm -geometry +50+100
    

    ..positions a window 50 pixels from the left and 100 from the top. To specify the size:

    xterm -geometry 400x300
    

    ...or combined:

    xterm -geometry 400x300+50+100