How does one change the title of any window in X

openboxx11xorg

I would like to know if it is possible to put an arbitrary name as window title
for any application in X or OpenBox. And if it is, How to do it or just a nice link to some documentation which I have been unable to find.
I don't like icons in my panel (currently tint2) but not all window title are
sufficient since most of the time they don't give the application name and are not pretty, for example Firefox has the title of the current web page which is not always pretty and does not give the name of the application itself.

Thank you.

Best Answer

xdotool(1) can do that. To rename whatever window you click next:

xdotool selectwindow set_window --name "new name"

To find a window based on its current name, then rename it:

xdotool search --name "old name" set_window --name "new name"

However, this won't last for any application (such as Firefox) that keeps updating its own name. The way to prevent that will be specific to each application.