If you use X11, not Wayland, you can use
then click in the window to get the geometry.
for example:
Code:
$ xwininfo -stats
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x2c0000f "ssh"
Absolute upper-left X: 7
Absolute upper-left Y: 718
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 739
Height: 403
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +7+718 -1174+718 -1174-79 +7-79
-geometry 72x21+1-73
Most X11 programs can be specifically placed using the -geometry option. So,
Code:
$ xterm -geometry 72x21+1-73
places any exactly sized xterm in that location on the current workspace.
Be careful with non-terminals for sizes. I pointed it at a firefox instance and it returned:
-geometry 1783x1000-9-30 .... which has to be pixels for all the open tabs. I didn't do any research, but the "Corners" output seems more useful.
Corners: +122+164 -15+164 -15-36 +122-36 for GUI stuff.
Anyway, that's a starting point for your testing/research.
Bookmarks