[xmonad] The IM layout and skype

Sergey Manucharian ingeniware at gmail.com
Sat Jun 5 09:27:43 EDT 2010


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" <hgabreu at gmail.com> 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


More information about the xmonad mailing list