<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jun 12, 2016 at 5:02 PM, Adam Sjøgren <span dir="ltr"><<a href="mailto:asjo@koldfront.dk" target="_blank">asjo@koldfront.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div id=":1b9" class="">The documentation is confusing to me - some places '|||' is used to<br>
combine things, other places it isn't.</div></blockquote></div><br>||| separates layouts. Layouts are complete in and of themselves.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Other things are layout modifiers. As the name suggests, they modify other layouts; the layout to be modified is a parameter, and there may be other parameters which may also be workspaces.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>Maybe this will be clearer:</div><div><br></div><div> Full -- this is a layout, it can stand by itself or be modified</div><div> smartBorders Full -- this is a layout modifier applied to a layout</div><div> smartBorders -- this is an error, because it is not applied to a layout. "It is a purple." -- a purple *what*?</div><div> smartBorders ||| Full -- this is an error because you are saying "either use smartBorders or use Full". But smartBorders is not a layout</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span style="font-size:13.6px"> , layoutHook = avoidStruts $ layoutHook defaultConfig ||| modWorkspace "3" stoppable (layoutHook defaultConfig)</span><br style="font-size:13.6px"><br style="font-size:13.6px"><span style="font-size:13.6px">which doesn't seem to work, as the browser running on workspace 3 (mod-3</span><br style="font-size:13.6px"><span style="font-size:13.6px">takes me there), keeps using 5-8% CPU according to top when another</span><br style="font-size:13.6px"><span style="font-size:13.6px">workspace is active.</span><br style="font-size:13.6px"></blockquote><div><br></div><div>I hate their example because it is not clear that it has all the layouts in defaultConfig twice and only the second list has the stop behavior. You need to mod-space 3 times to get to a stoppable layout.</div><div><br></div><div>If you want stoppable to always be active on workspace 3:</div><div><br></div><div> layoutHook = avoidStruts $ modWorkspace "3" stoppable $ layoutHook defaultConfig</div><div><br></div><div>(I find it interesting that you were able to figure out that modWorkspace applies only to layout modifiers as opposed to layouts, but you couldn't recognize that (|||) only works with layouts, not layout modifiers.)</div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>