[xmonad] switch workspace on all monitors at once

Brandon Allbery allbery.b at gmail.com
Wed Aug 19 14:06:15 UTC 2015


On Wed, Aug 19, 2015 at 12:28 AM, Kristopher Keller <kristopher004 at gmail.com
> wrote:

> Hi, I'm using three monitors and each monitor has 10 workspaces.
>
> This is the code I'm using to switch workspaces:
>
> [code]
> myWorkspaces    = withScreens 3 ["1","2","3","4","5","6","7","8","9"]
>
> ...
>
> [((m .|. modm, k), windows $ onCurrentScreen f i)
> | (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]
> , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
> [/code]
>
> 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?
>
>
You might want to look at
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaceGroups.html
--- unfortunately, it does not look like anyone has provided integration
with IndependentScreens to treat them as predefined groups.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20150819/898021c3/attachment.html>


More information about the xmonad mailing list