
Hi, How can the IM layout be made to work with pidgin? I did: withIM (1%7) (ClassName "Buddy List") (Grid) But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout). The "Buddy List" comes from xwininfo. Regards, Nathan

On Tue, Sep 29, 2009 at 02:43:39PM +0200, Nathan Huesken wrote:
Hi,
How can the IM layout be made to work with pidgin?
I did:
withIM (1%7) (ClassName "Buddy List") (Grid)
But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
The "Buddy List" comes from xwininfo.
Are you sure the class name isn't "Pidgen"? That's what xprop tells me on my system at least. (It gives "Buddy List" as the *icon* name.) (withIM (1/5) (ClassName "Pidgin") Grid) works fine for me. HTH, Toby -- Dr T. S. Cubitt Quantum Information Theory group Department of Mathematics University of Bristol United Kingdom email: tsc25@cantab.net web: www.dr-qubit.org

On 09/29/09 at 01:53pm, Toby Cubitt wrote:
On Tue, Sep 29, 2009 at 02:43:39PM +0200, Nathan Huesken wrote:
Hi,
How can the IM layout be made to work with pidgin?
I did:
withIM (1%7) (ClassName "Buddy List") (Grid)
But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
The "Buddy List" comes from xwininfo.
Are you sure the class name isn't "Pidgen"? That's what xprop tells me on my system at least. (It gives "Buddy List" as the *icon* name.)
(withIM (1/5) (ClassName "Pidgin") Grid)
works fine for me.
I also had pidgin working with: withIM (ratio) (Role "buddy_list") (layout) This prevents chat windows from supplanting the roster (if they have the same Classname). -- patrick brisbin

On Tue, Sep 29, 2009 at 09:45:22AM -0400, Patrick Brisbin wrote:
On 09/29/09 at 01:53pm, Toby Cubitt wrote:
On Tue, Sep 29, 2009 at 02:43:39PM +0200, Nathan Huesken wrote:
Hi,
How can the IM layout be made to work with pidgin?
I did:
withIM (1%7) (ClassName "Buddy List") (Grid)
But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
The "Buddy List" comes from xwininfo.
Are you sure the class name isn't "Pidgen"? That's what xprop tells me on my system at least. (It gives "Buddy List" as the *icon* name.)
(withIM (1/5) (ClassName "Pidgin") Grid)
works fine for me.
I also had pidgin working with:
withIM (ratio) (Role "buddy_list") (layout)
This prevents chat windows from supplanting the roster (if they have the same Classname).
-- patrick brisbin
Hi, Mmh, OK. Strange. For some reason, my buddy list is not been placed correctly (not handled any different than any other window). Ideas what could be wrong? Thanks! Nathan

Nathan, I'm sorry I replied directly, hit r by accident instead of L in mutt *fail* Same reply below but to the list this time: On 09/29/09 at 04:30pm, Nathan Huesken wrote:
On Tue, Sep 29, 2009 at 09:45:22AM -0400, Patrick Brisbin wrote:
On 09/29/09 at 01:53pm, Toby Cubitt wrote:
On Tue, Sep 29, 2009 at 02:43:39PM +0200, Nathan Huesken wrote:
Hi,
How can the IM layout be made to work with pidgin?
I did:
withIM (1%7) (ClassName "Buddy List") (Grid)
But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
The "Buddy List" comes from xwininfo.
Are you sure the class name isn't "Pidgen"? That's what xprop tells me on my system at least. (It gives "Buddy List" as the *icon* name.)
(withIM (1/5) (ClassName "Pidgin") Grid)
works fine for me.
I also had pidgin working with:
withIM (ratio) (Role "buddy_list") (layout)
This prevents chat windows from supplanting the roster (if they have the same Classname).
-- patrick brisbin
Hi,
Mmh, OK. Strange. For some reason, my buddy list is not been placed correctly (not handled any different than any other window). Ideas what could be wrong?
What is the output when you do the following? start pidgin type xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" in a term click on your buddy list Thanks, Pat -- patrick brisbin

On Tue, Sep 29, 2009 at 11:45:42AM -0400, Patrick Brisbin wrote:
Nathan,
I'm sorry I replied directly, hit r by accident instead of L in mutt *fail*
Same reply below but to the list this time:
On 09/29/09 at 04:30pm, Nathan Huesken wrote:
On Tue, Sep 29, 2009 at 09:45:22AM -0400, Patrick Brisbin wrote:
On 09/29/09 at 01:53pm, Toby Cubitt wrote:
On Tue, Sep 29, 2009 at 02:43:39PM +0200, Nathan Huesken wrote:
Hi,
How can the IM layout be made to work with pidgin?
I did:
withIM (1%7) (ClassName "Buddy List") (Grid)
But it completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
The "Buddy List" comes from xwininfo.
Are you sure the class name isn't "Pidgen"? That's what xprop tells me on my system at least. (It gives "Buddy List" as the *icon* name.)
(withIM (1/5) (ClassName "Pidgin") Grid)
works fine for me.
I also had pidgin working with:
withIM (ratio) (Role "buddy_list") (layout)
This prevents chat windows from supplanting the roster (if they have the same Classname).
-- patrick brisbin
Hi,
Mmh, OK. Strange. For some reason, my buddy list is not been placed correctly (not handled any different than any other window). Ideas what could be wrong?
What is the output when you do the following?
start pidgin
type xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" in a term
click on your buddy list
Thanks, Pat
Hi, I really do not know what I did, but this morning I started the computer, started pidgin and it worked ... So thanks for all the effort. Nathan

On Tue, Sep 29, 2009 at 09:45:22AM -0400, Patrick Brisbin wrote:
I also had pidgin working with:
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? Toby -- Dr T. S. Cubitt Quantum Information Theory group Department of Mathematics University of Bristol United Kingdom email: tsc25@cantab.net web: www.dr-qubit.org

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

Excerpts from Nathan Huesken's message of Tue Sep 29 06:43:39 -0600 2009:
How can the IM layout be made to work with pidgin?
withIM (1%7) (ClassName "Buddy List") (Grid)
.... completly behaves the same for the pidgin Buddy List as all otehr windows (Grid layout).
You probably want to match the WM_NAME string with Title: withIM (1%7) (Title "Buddy List") (Grid) This is more specific than using the "Pidgin" ClassName, which would be allowed to match new non-buddy list Pidgin windows too. If it turns out that other apps also use the title "Buddy List", you can restrict it to only Pidgin: withIM (1%7) (And (ClassName "Pidgin") (Title "Buddy List")) (Grid) -- regards, wmw
participants (4)
-
Nathan Huesken
-
Patrick Brisbin
-
Toby Cubitt
-
Wirt Wolff