Linux – GNU/Linux: Dual screen and separate workspaces

linuxmultiple-monitorsworkspace

I just received my second 23" monitor and hooked it up up to my NVidia 8800GT graphics card.

Nvidia settings window gives me two options basically: Twinview or separate X screens:
– Twinview basically makes both screens virtually into one big screen, which makes both screens be -one- workspace combined.
– Separate X screens does allow me to separate workspaces, but does not allow me to switch to a workspace from the other X screen.

I want to be able to access my 4 work spaces regardless of which monitor they are on so I can quickly switch between workspace set-ups. I may just want Pidgin to be on the left monitor and Vim on the right. Or just the other way around.

Is this even possible? If so, can you point me into the right direction (documentation / guides)?

Very much appreciated.

Best Answer

So, as implemented in KDE And Gnome, this is beyond "not easy" - it's darn near impossible. Here's why: the virtual workspaces are implemented in widgets that run in the window manager. They're implemented with trickery and magic and bound entirely to one window manager running on one DISPLAY.

The window manager, virtual-workspace-management widgets, and client applications all run on the same DISPLAY (as in the $DISPLAY environment variable; typically :0.0) Your second monitor, in non-twinview-mode, is actually running on a separate DISPLAY - probably :0.1 You can verify this by running 'echo $DISPLAY' from a shell prompt in a terminal program on each monitor.

Each DISPLAY is running its own X-server. So, they have no idea about each other's windows, windowmanagers, or virtual workspaces.

I would bet the various tiling windowmanagers will want you to have your monitor in twinview mode. Then they can carefully work with the real-estate that's in one and in the other, in the same DISPLAY... and fake you into thinking they're two separate "workspaces" (same word but not same meaning as virtual workspaces).

There are numerous X-window issues that would make it quite difficult to move or migrate a running Xwindow client program from one DISPLAY to another seamlessly. Not saying it can't be done; it may have been done... but I'll bet it's buggy or at least limited; I doubt you could move a firefox window playing a video between DISPLAYs, for example.

Hope this helps! -pbr

Related Question