0

Possible Duplicate:
Get Window size in shell

I have a terminal running on the desktop and I would like to determine it's size and coordinates.

I'd like to get the parameters in the format required for gnome-terminal --geometry

Is there any file or variable that holds the geometry parameters of a running terminal?

Thanks

1 Answers1

1

wmctrl -lG

xprop -spy

Also see fred.bear's answer in Get Window size in shell .

More info is available in How to programatically manipulate application windows? .

belacqua
  • 23,540