[CentOS] Extracting the window (titlebar) name from a bash script?

Sun Jul 22 06:58:08 UTC 2012
Ron Yorston <rmy at tigress.co.uk>

Fernando Cassia wrote:
>Surely there' s a way to obtain the "window name" -which appears on
>the Window Manager' s Titlebar- for running processes, right?.
>Well, I can't find it...

wmctrl with the '-l -p' flags provides a list of windows with names and
PIDs.  It's in EPEL for CentOS 6, though not 5.  It probably wouldn't be
too hard to build for CentOS 5 if you needed it there.