<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 19, 2015 at 12:28 AM, Kristopher Keller <span dir="ltr"><<a href="mailto:kristopher004@gmail.com" target="_blank">kristopher004@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I'm using three monitors and each monitor has 10 workspaces.<br>
<br>
This is the code I'm using to switch workspaces:<br>
<br>
[code]<br>
myWorkspaces    = withScreens 3 ["1","2","3","4","5","6","7","8","9"]<br>
<br>
...<br>
<br>
[((m .|. modm, k), windows $ onCurrentScreen f i)<br>
| (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]<br>
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]<br>
[/code]<br>
<br>
I wanted to modify it to add a keybind to switch the workspace on all three monitors at once. For example, control + modm + 2 would switch all monitors to workspace 2. But I'm afraid I don't understand whats going on in that code.  Could someone give me a hand?<br>
<br></blockquote><div><br></div><div>You might want to look at <a href="http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaceGroups.html">http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaceGroups.html</a> --- unfortunately, it does not look like anyone has provided integration with IndependentScreens to treat them as predefined groups.</div><div><br></div></div>-- <br><div class="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>