[xmonad] Ignore single window for focus follows mouse?
Brandon Allbery
allbery.b at gmail.com
Wed Dec 7 01:26:18 CET 2011
On Tue, Dec 6, 2011 at 18:59, Joseph Garvin <joseph.h.garvin at gmail.com>wrote:
> focus on any window except that one. But ManageHook doesn't define a
> negation operator, just "=?", so I'm not sure how to do it (pardon my lack
> of haskell literacy ;p). Also, what I really want
>
(/=?) in XMonad.Hooks.ManageHelpers
> In general, when you have a Query Bool, is there a way to get the Bool out
> of it so you can do normal operations? I know this is related to how monads
> work, but I don't really understand xmonad's architecture yet.
>
You can't get stuff out of the monad, but you can lift stuff into it with
fmap or liftM (same thing, for historical reasons).
> q /=? x = fmap (/= x) q
And in fact (=?) is defined as
> q =? x = fmap (== x) q
--
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/20111206/654592bf/attachment.htm>
More information about the xmonad
mailing list