
On Thu, Oct 2, 2014 at 12:24 AM, Christian Wills
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@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net