Re: getting a window title in opera [Thanks!]

Aaron Sloman <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
Matthew Fuller wrote:

[AS]
> > I wonder if anyone has a better solution. Is there some way to force
> > an opera window to have a title? Then the ctwm iconmanager will just
> > use it and I won't have to build my own index.

[MF]
> Well, window titles are just window properties; you can add/remove 'em
> just like the program itself can.  It's even easier on programs that
> don't [re]set it themselves, since your choices will stick.  There are
> actually two different properties in question here; the window name
> (WM_NAME), and the icon name (WM_ICON_NAME), which are conceptually
> independent (though quite often set identically).  In ctwm terms,
> WM_NAME is what winds up in the titlebar, and WM_ICON_NAME is what
> winds up in the icon manager.
>
> So you can use xprop(1) to set 'em at will.  e.g.,
>
> % xprop -set WM_NAME asdf
>
> and then clicking on the appropriate window.

Amazing! I wonder how many other features of linux, X11 etc. I don't
know about that could be enormously useful to me?

That works as you've described and means I can now much more easily locate
the window I want in the iconmanager.

This mechanism means that I should be able to create a script that allows
me first to create N opera windows with different names, then populate them
as desired.

If I can find a way that does that automatically for N new windows
whenever I start up opera, that will save a lot of hassle.

Unfortunately at present calls of 'opera' just add a new tab to the current
opera window. I'll have to find out how to suppress that temporarily.

This is another reason for preferring opera to firefox, since I have not
found a way to stop firefox changing name of window when I switch between
tabs, which screws up the use of the iconmanager to select windows.

Many thanks.

Aaron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.