codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Add new master pane client count control command #577

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow my usage for a while.
2. Note that I often send "IncMasterN" instead of "DecMasterN" by accident.
3. Also note that I pretty much never have more than two clients in the master 
pane.

What is the expected output? What do you see instead?
I expect to not reach unused configurations by accident. I expect the WM to 
allow a configuration that prevents that.

What version of the product are you using? On what operating system? 0.11 on 
FreeBSD 10.

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".
Not completely relevant.

Please provide any additional information below.
The attached patch file adds a new Message type to the Tall layout (I didn't 
see where it should be added to other layouts). The message is called 
"SplitMaster", and has no arguments. It fixes the first issue by setting the 
client count to the master pane to 1 if it's not currently 1, thus providing a 
quick way to get back to that setting. It solves the second issue by changing 
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 unsplit 
master pane.

Original issue reported on code.google.com by m...@mired.org on 23 Sep 2014 at 2:26

Attachments:

GoogleCodeExporter commented 8 years ago
Attach a Darcs-format patch from Devin Mullins

Original comment by m...@mired.org on 25 Sep 2014 at 3:16

Attachments:

GoogleCodeExporter commented 8 years ago
Can be closed - Devin provided an example of doing this in the config file.

Original comment by m...@mired.org on 2 Oct 2014 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by m...@twifkak.com on 3 Oct 2014 at 4:36