
On Tue, Dec 6, 2011 at 18:59, Joseph Garvin
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@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms