[xmonad] Cannot manage windows by title

Alexey Feigin mysteriousentity at gmail.com
Tue Sep 15 05:36:27 EDT 2009


Hi,

I would like to manage some windows depending on their *title* (WM_NАМЕ). I
wrote a manage hook but it doesn't seem to be working (ie, the action is not
performed).

Matching by *className* and *resource* seems to work, but not by *title*.

myManageHook = composeAll . concat $
   [ [ fmap ("Gvim"        `isInfixOf`) className --> doFloat ]  -- Works
   , [ fmap ("gvim"        `isInfixOf`) resource  --> doFloat ]  -- Works
   , [ fmap ("journal.txt" `isInfixOf`) title     --> doFloat ]  -- Does not
work
   ]

I also tried to use
(stringProperty "WM_NAME")

Any ideas?

I'm running xmonad with GNOME on Ubuntu.

Thanks in advance :)

Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/xmonad/attachments/20090915/9992e0fe/attachment.html


More information about the xmonad mailing list