Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 belacq, 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

1 Answer 1

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.