Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

marked as duplicate by belacqua, Oli Mar 30 '11 at 17:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
possible. does he want size in pixels or characters... – hbdgaf Mar 30 '11 at 16:28
up vote 1 down vote accepted

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? .

share|improve this answer

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