<div dir="ltr">Thanks Brandon! <br>Using the PerScreen module, I simply switched the condition from being on the screen width, to being on the screen x coordinate (which obviously differs between the left and right screens).<br><br>However each time a new layout is returned (i.e. each time I switch screens) the index of the current selected layout from the layouts in the set is being reset. <div>That is to be expected because there is no way of knowing apriori that the 2 layouts will have an equal amount of items, but in my case the 2 layout sets are symmetrical, therefore I would like to stay consistent with current selected layout index in the layout set. I tried looking around the Workspace ADT and the runLayout func but can't find a way to get to such an index.<br><br>Is it feasible in a simple manner?</div><div>I attached the code that I currently use.</div><div><br></div><div>Any help is yet again, greatly appreciated!<br>Thanks!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 2, 2015 at 3:44 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Wed, Dec 2, 2015 at 3:11 AM, Tal Walter <span dir="ltr"><<a href="mailto:talw10@gmail.com" target="_blank">talw10@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In case I'm not missing any module in contrib, could someone please point me in a good starting direction as to how to implement such a thing?</blockquote></div><br></span>This could be done with a layout modifier similar to onWorkspace, but you'll need to look in the StackSet for the workspace tag being laid out and determine what ScreenID it is currently on: that information is not passed to the LayoutHook. (xmonad-contrib in git has PerScreen but that triggers by screen width, not screen ID.)<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><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>
</font></span></div></div>
</blockquote></div><br></div>