[xmonad] Xmonad.Layout.Hints and pidgin

Wirt Wolff wirtwolff at gmail.com
Tue Sep 29 13:07:23 EDT 2009


Excerpts from Toby Cubitt's message of Tue Sep 29 10:01:50 -0600 2009:
> On Tue, Sep 29, 2009 at 09:45:22AM -0400, Patrick Brisbin wrote:
> >
> >   withIM (ratio) (Role "buddy_list") (layout)
> >
> > This prevents chat windows from supplanting the roster (if they have the
> > same Classname).
> 
> You learn something every day :) This is great - a significant
> improvement over matching on Classname. Thanks!
> 
> I wonder whether matching on Role or Title is preferable, or whether it
> makes no difference?

With Pidgin doubt there's much difference. Title has always worked fine for
me for this specific purpose. However, Title is a bit flakier in general,
since apps sometimes set title dynamically, or wait till after they're mapped
to set it. So overall I vote role better than title.

Didn't think of matching Role here simply because forgot that it's already
predefined for IM layout. If it were used in a manageHook instead, it would
have required an extra bit of explanation / definition.

role = stringProperty "WM_WINDOW_ROLE"

-- 
wmw


More information about the xmonad mailing list