On Wed, Oct 1, 2014 at 10:55 PM, Christian Wills <cwills.dev@gmail.com> wrote:
instance ExtensionClass MasterPaneFlag where
    initialValue = MasterPaneFlag False

pickIncrFun :: Bool -> X ()
pickIncrFun flag = if flag then (sendMessage (IncMasterN (-1))) else (sendMessage (IncMasterN 1))

You might want to check the behavior of this around manual changes (mod-, and mod-.). It should at least be safe against mod-shift-space and manual setLayout, I think.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net