This is a nice little CLI tool that outputs X window titles. It's the only tool I've found that can asyncronously output window titles and they change or update.