To me it sounds like the view is cloned. There are two steps to fixing your problem:
- Unclone the views and set them side by side.
- Learn how to move windows between desktops in xmonad and how to switch desktops.
To unclone, use xrandr to set different views for each monitor.
Open a console and type:
$xrandr
It should display something along the lines:
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected (normal left inverted right x axis y axis)
1024x768 60.0 + 85.0 75.1 70.1
1280x1024 75.0 60.0
1280x960 75.0 60.0
1152x864 75.0
832x624 74.6
800x600 85.1 72.2 75.0 60.3 56.2
640x480 85.0 72.8 75.0 60.0
720x400 70.1
TV1 disconnected (normal left inverted right x axis y axis)
In my case LVDS1 is the laptop and VGA1 is a connected projector.
To set the projector left of the monitor use:
$xrandr --output VGA1 --auto --left-of LVDS1
This will use the default resolution for the projector (in this case 1024x768) and place the view left of the laptop screen.
To set a custom resolution use
$xrandr --output VGA1 --mode 1280x800 --left-of LVDS1
In your case it will be something along the lines:
$xrandr --output MONITOR2 --auto --left-of MONITOR1
The shortcuts for moving apps between desktops and switching desktops are
Mod Key + 1,2,3, - 9 for bringing the desktop to the monitor the mouse is on
Mod Key + SHIFT + 1,2,3, - 9 for sending the currently focused application to the particular desktop
The default Mod Key for xmonad is Alt but you can set it to the Windows key in order to free Alt for use in applications.
Ok, I stumbled over a hint in the man page, which I seem to have overseen before. The F8 key is the magic key: F8 opens a popup window where you can select Ctrl or Alt modifier to be locked. Then I can just press a number for a different workspace and then again F8 to unlock the Alt modifier.
Unfortunately other modifiers are not selectable. But that already helps.
Citing the man page from tiger vncviewer which is common for Red Hat, CentOS, Fedora, …:
POPUP MENU
The viewer has a popup menu containing entries which perform various actions. It is usually
brought up by pressing F8, but this can be configured with the MenuKey parameter. Actions
which the popup menu can perform include:
* switching in and out of full-screen mode
* quitting the viewer
* generating key events, e.g. sending ctrl-alt-del
* accessing the options dialog and various other dialogs
By default, key presses in the popup menu get sent to the VNC server and dismiss the popup.
So to get an F8 through to the VNC server simply press it twice.
Citing the man page from tight vncviewer which is common for Debian, Ubuntu, … (much shorter description):
You can use F8 to display a pop-up utility menu. Press F8 twice to pass single F8 to the
remote side.
Best Answer
I haven't messed with the defaults much and
ctrl+shift+n
does it for me.