4

I'm running a two headed setup, and I'd very much like to bind like M-i to switch the left monitor's workspace to workspace 5, and the right monitor's workspace to workspace 6.

I've taken a look through Xmonad.Actions, but I couldn't see what I was looking for.

Something like

xmonad `additionalKeysP` [("M-i", switchToWorkspaces)]

where switchToWorkspace is the function I'm after

Squidly
  • 2,707
  • 19
  • 43

1 Answers1

4

Use XMonad.Actions.OnScreen:

windows (greedyViewOnScreen 0 "5" . greedyViewOnScreen 1 "6")
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
Daniel Wagner
  • 145,880
  • 9
  • 220
  • 380
  • At first I thought this worked, but it seems that it doesn't actually function as quite I expected. Changing greedyViewOnScreen to viewOnScreen gives a better effect. – Squidly Jul 02 '12 at 11:04