Patch to add new Layout message

I found the inc/dec masterN commands to be a bit clumsy, especially considering that I pretty much just use 1 client in the master pane most of the time, sometimes using 2 when I wanted to alternate between two windows rapidly. I just submitted issue #577 on the google code issue tracker that includes a patch to add a new Message for changing the client count. The Message is called "SplitMaster", and has no arguments. It sets the client count of the master pane to 1 if it's not currently 1, thus providing a quick way to get back to that setting. It setgs the client count for the master pane to 2 if it's currently 1, effectively making it a toggle between the two modes of a split master pane and an full size master pane. I'm not sure if that's the proper way to submit patches. If not, please let me know what I need to do to submit it properly. If it is, could I get somoen to consider it and either merge it (with whatever fixes it requires) or let me know what I can do to get it merged? Thanks, Mike

Thanks, Mike. Patches should be darcs patches. If your sendmail is setup
correctly, you can use `darcs send` to mail the list, otherwise `darcs send
-O` will create a file you can attach or send.
On Tue, Sep 23, 2014 at 7:31 AM, Mike Meyer
I found the inc/dec masterN commands to be a bit clumsy, especially considering that I pretty much just use 1 client in the master pane most of the time, sometimes using 2 when I wanted to alternate between two windows rapidly. I just submitted issue #577 on the google code issue tracker that includes a patch to add a new Message for changing the client count.
The Message is called "SplitMaster", and has no arguments. It sets the client count of the master pane to 1 if it's not currently 1, thus providing a quick way to get back to that setting. It setgs the client count for the master pane to 2 if it's currently 1, effectively making it a toggle between the two modes of a split master pane and an full size master pane.
I'm not sure if that's the proper way to submit patches. If not, please let me know what I need to do to submit it properly. If it is, could I get somoen to consider it and either merge it (with whatever fixes it requires) or let me know what I can do to get it merged?
Thanks, Mike
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Excerpts from Mike Meyer's message of 2014-09-23 07:31:08 -0700:
The Message is called "SplitMaster", and has no arguments. It sets the client count of the master pane to 1 if it's not currently 1, thus providing a quick way to get back to that setting. It setgs the client count for the master pane to 2 if it's currently 1, effectively making it a toggle between the two modes of a split master pane and an full size master pane.
Can this be done entirely from the configuration? For example, a low-tech solution would be to simply have two Tall layouts in your layout hook (one with one master pane and one with two master panes) and a keybinding that toggles between them, e.g. using X.A.CycleSelectedLayouts [1]. I recognize that this is not *identical*, but perhaps it's close to your needs and doesn't require changes xmonad's core. ~d [1] http://hackage.haskell.org/package/xmonad-contrib-0.11.3/docs/XMonad-Actions...
participants (3)
-
Daniel Wagner
-
Devin Mullins
-
Mike Meyer