[xmonad] Fwd: Patch to add new Layout message
Brandon Allbery
allbery.b at gmail.com
Thu Oct 2 04:31:47 UTC 2014
On Thu, Oct 2, 2014 at 12:24 AM, Christian Wills <cwills.dev at gmail.com>
wrote:
> setLayout $ XMonad.layoutHook myConfig >> pickIncrFun (getFlag flag)
The precedence of ($) compared to (>>) is breaking you here. Use
parentheses instead.
Additionally, you are working in the X monad so you can get the actual
layout (also removing the need for parentheses or precedence-changing
tricks like ($)). This should look something like:
asks config >>= setLayout >> pickIncrFun (getFlag flag)
(untested)
An unconditional setLayout means that things like full-screen or multiple
layouts selected with (|||) and mod-space will be forcibly reset by this
binding.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20141002/527f0440/attachment.html>
More information about the xmonad
mailing list