[xmonad] Regexp WM_NAME ?

Brandon Allbery allbery.b at gmail.com
Sun May 13 19:43:16 CEST 2012


On Sun, May 13, 2012 at 1:15 PM, Pablo Olmos de Aguilera C. <
pablo at glatelier.org> wrote:

> On 13 May 2012 12:37, Gwern Branwen <gwern0 at gmail.com> wrote:
> >    q ~? x  = fmap (x `isInfixOf`) q
> >
> >    myManageHook = (composeAll . concat $ --shifting actions
> >        [ [ title     =? x --> doCenterFloatToAll | x <- important ]
> >    ....
> >        , [ className =? "Skype" <&&> title ~? "Call with " -?>
> > doSideFloat' CE ]
>
> Is the previous code right? I'm seeing an only single quote.
>

It's a backquote, and yes, there are two of them, surrounding "isInfixOf".


> Overall, I don't understand the example... what it has to do the first
> line with the last one?
>

The first one defined an operator (~?); the second showed how to use it.

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120513/984eb95f/attachment.htm>


More information about the xmonad mailing list