PDA

View Full Version : Getting a list of the (normal) windows



sakishrist
November 4th, 2011, 07:00 PM
Hello everyone!

I would like to get a list of the currently open windows. The most important is the top one but it would be nice if I could get the captions (and processes) of all of them. Could you please point me in the right direction?

Thanks in advance!

11jmb
November 4th, 2011, 07:13 PM
wmctrl -l

crdlb
November 4th, 2011, 08:46 PM
GNOME's libwnck could also be used for this, particularly if you have a long-running process and want to monitor changes.

sakishrist
November 4th, 2011, 09:06 PM
Thanks, I'll give it a try.