
Hi, I am using the IM layout for skype. The problem is, that the chat windows tend to get into the area for the contacts window. I use the layout like this: withIM (1%7) (ClassName "Skype") (LG.Grid False) But both the contacts window, as well as the chat windows have the same class name: WM_CLASS(STRING) = "skype", "Skype" What can I do? Thanks! Nathn

What I do is match the Title instead:
withIM (1%7) skype (LG.Grid False) where
skype = Title "<yourUsername> - Skype™ (Beta)" `Or` Title "Skype™ 2.1
(Beta) for Linux"
Regards,
Henrique G. Abreu
ps: sorry, I forgot to reply to the list the 1st time.
On Tue, Jun 1, 2010 at 11:00, Nathan Huesken
Hi,
I am using the IM layout for skype. The problem is, that the chat windows tend to get into the area for the contacts window.
I use the layout like this:
withIM (1%7) (ClassName "Skype") (LG.Grid False)
But both the contacts window, as well as the chat windows have the same class name:
WM_CLASS(STRING) = "skype", "Skype"
What can I do?
Thanks! Nathn _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Hi,
I tried that, I copied the WM_NAME(COMPOUND_TEXT) string from the xprop
output.
But it does not work. Maybe something is wrong with the "™" symbol, but
it is displayed correclty in vim. Can I somehow just test if the title
contains my username?
Thanks!
nathan
On Tue, 1 Jun 2010 11:16:12 -0300
"Henrique G. Abreu"
What I do is match the Title instead: withIM (1%7) skype (LG.Grid False) where skype = Title "<yourUsername> - Skype™ (Beta)" `Or` Title "Skype™ 2.1 (Beta) for Linux"
Regards, Henrique G. Abreu ps: sorry, I forgot to reply to the list the 1st time.
On Tue, Jun 1, 2010 at 11:00, Nathan Huesken
wrote: Hi,
I am using the IM layout for skype. The problem is, that the chat windows tend to get into the area for the contacts window.
I use the layout like this:
withIM (1%7) (ClassName "Skype") (LG.Grid False)
But both the contacts window, as well as the chat windows have the same class name:
WM_CLASS(STRING) = "skype", "Skype"
What can I do?
Thanks! Nathn _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

You could use WM_WINDOW_ROLE, if skype defines that.
På Thu, 03 Jun 2010 16:38:56 +0200, skrev Nathan Huesken
Hi,
I tried that, I copied the WM_NAME(COMPOUND_TEXT) string from the xprop output. But it does not work. Maybe something is wrong with the "™" symbol, but it is displayed correclty in vim. Can I somehow just test if the title contains my username?
Thanks! nathan
On Tue, 1 Jun 2010 11:16:12 -0300 "Henrique G. Abreu"
wrote: What I do is match the Title instead: withIM (1%7) skype (LG.Grid False) where skype = Title "<yourUsername> - Skype™ (Beta)" `Or` Title "Skype™ 2.1 (Beta) for Linux"
Regards, Henrique G. Abreu ps: sorry, I forgot to reply to the list the 1st time.
On Tue, Jun 1, 2010 at 11:00, Nathan Huesken
wrote: Hi,
I am using the IM layout for skype. The problem is, that the chat windows tend to get into the area for the contacts window.
I use the layout like this:
withIM (1%7) (ClassName "Skype") (LG.Grid False)
But both the contacts window, as well as the chat windows have the same class name:
WM_CLASS(STRING) = "skype", "Skype"
What can I do?
Thanks! Nathn _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Audun Skaugen

Excerpts from Nathan Huesken's message of Thu, 03 Jun 2010 10:38 -0400:
Hi,
I tried that, I copied the WM_NAME(COMPOUND_TEXT) string from the xprop output. But it does not work. Maybe something is wrong with the "™" symbol, but it is displayed correclty in vim. Can I somehow just test if the title contains my username?
Thanks! nathan
On Tue, 1 Jun 2010 11:16:12 -0300 "Henrique G. Abreu"
wrote: What I do is match the Title instead: withIM (1%7) skype (LG.Grid False) where skype = Title "<yourUsername> - Skype™ (Beta)" `Or` Title "Skype™ 2.1 (Beta) for Linux"
Some time ago Skype used WM_WINDOW_ROLE = "Chats" for chat windows, but now it doesn't, so I switched to the way suggested by Henrique and it works here. I'm using both pidgin and skype at the same workspace, pidgin at the left side and skype at the right: ... import XMonad.Layout.IM as IM ... imLayout = IM.withIM (0.18) (Role "buddy_list") $ reflectHoriz $ IM.withIM (0.22) isSkype (Mirror tiled ||| Full) where isSkype = (IM.Or (IM.Title "<username> - Skype™ (Beta)")(IM.Title "Skype™ 2.1 (Beta) for Linux")) Cheers, Sergey
participants (4)
-
Audun Skaugen
-
Henrique G. Abreu
-
Nathan Huesken
-
Sergey Manucharian