LWN.net Logo

LCA: The X-men speak

LCA: The X-men speak

Posted Feb 11, 2013 21:04 UTC (Mon) by quintela (guest, #34198)
Parent article: LCA: The X-men speak

Once that we are talking about multiple monitors. You can have 9 virtual desktops arranged as a 3x3 matrix as good intended in one monitor. This is trivial. Now, you get a new identical monitor. And you can get anothre 3x3 virtual desktops of double width. But, could it be possible to have the two monitors as two independent viewers in the 3x3 Virtual Desktops? I don't care what happens if you point both at the same Virtual Desktop. Both actions of "displaying a message Desktop already visible" or having both showing the same image is good for me.

How difficult would be to implement that?

My setup is like that, and it just happens that I always end needed the different "half's" of two virtual desktops together.


(Log in to post comments)

LCA: The X-men speak

Posted Feb 12, 2013 2:05 UTC (Tue) by sjj (subscriber, #2020) [Link]

+1

I'd love to have this too!

LCA: The X-men speak

Posted Feb 12, 2013 6:25 UTC (Tue) by geofft (subscriber, #59789) [Link]

I'm not quite understanding what you're asking, but I'm pretty sure I have this setup using xmonad, without any server-side fanciness at all. I have nine desktops (Alt-1 through Alt-9), and can independently switch to any of the desktops on any of my monitors (you use Alt-W, Alt-E, and maybe Alt-R if you have a third monitor to switch focus). Is this what you're asking for?

LCA: The X-men speak

Posted Feb 12, 2013 7:29 UTC (Tue) by sce (subscriber, #65433) [Link]

It's up to the window manager. E.g. Awesome WM [1] gives you almost what you're asking for: One independent workspace (with it's own tags/desktops) per screen. This allows you to mix and match one desktop from each workspace as you see fit.

[1] https://awesome.naquadah.org/

LCA: The X-men speak

Posted Feb 12, 2013 19:18 UTC (Tue) by mathstuf (subscriber, #69389) [Link]

XMonad also supports this (it's actually the default, but there's a module you can use to get the "normal" behavior).

Here, I have 3 monitors with 9 workspaces. Each monitor shows a single workspace (though a workspace can't be on two monitors at the same time; maybe Wayland will fix that problem :) ). Unfortunately, the keybindings for manipulating a setup like this can get a little crazy. Comments from my xmonad.hs:

-------------------------------------------------------------------
-- ctrl+F[1 .. ], Switch to workspace N
-- ctrl+shift+F[1 .. ], View to workspace N
-- meta+F[1 .. ], Move client to workspace N and follow
-- meta+shift+F[1 .. ], Move client to workspace N
-- alt+F[1 .. ], Swap with workspace N and follow
-- alt+shift+F[1 .. ], Swap with workspace N
-------------------------------------------------------------------
-- ctrl+meta+F[1 .. ], Switch to screen N
-- ctrl+meta+shift+F[1 .. ], Move client to screen N
-- alt+meta+F[1 .. ], Swap with screen N and follow
-- alt+meta+shift+F[1 .. ], Swap with screen N
-------------------------------------------------------------------
-- ctrl+alt+[left,right], Switch to workspace to the left or right
-- meta+[left,right], Move window to left or right and follow
-- meta+shift+[left,right], Move window to left or right
-- alt+meta+[left,right], Swap with workspace to left or right and follow
-- alt+meta+shift+[left,right], Swap with workspace to left or right
-------------------------------------------------------------------
-- ctrl+alt+[up,down], Switch to next/previous screen
-- meta+[up,down], Move window to next/previous screen and follow
-- meta+shift+[up,down], Move window to next/previous screen
-- alt+meta+[up,down], Swap with next/previous screen and follow
-- alt+meta+shift+[up,down], Swap with next/previous screen

I don't use all of them (the Fn indexing for screens and the swapping workspaces between screen don't see much use), but it's nice to have the flexibility to manipulate windows and workspaces with the keyboard.

LCA: The X-men speak

Posted Feb 22, 2013 11:30 UTC (Fri) by turol (guest, #29306) [Link]

For those who didn't get it, this is what I'd want and probaby also what quintela was after.

I have virtual desktops numbered 1-6. With one monitor I can switch the currently active desktop with either the (MATE desktop) selector widget or keyboard shortcuts.

Now assume I had two monitors: left and right. Currently the virtual desktops fill both monitors and switching changes both monitors.

Instead I'd like all the virtual desktops be the size of ONE screen. Then both screens can be switched independently. I could have virtual desktop 1 on the left and 2 or 3 on the right.

Mouse (and keyboard focus) would be on one monitor at a time and when I pressed hotkey to change desktops, the monitor where the mouse currently is would change.

Both monitors would have task bar with all the same widgets and menus but the task bar would contain only the programs on the current virtual desktop.

Fullscreening an app should make it fill one virtual desktop and starting a fullscreen OpenGL program should only fill one monitor.

As far as I know all of this is currently not possible.

LCA: The X-men speak

Posted Feb 22, 2013 11:45 UTC (Fri) by tnoo (subscriber, #20427) [Link]

Have you tried xmonad or awesome. I think both do all you described (and more).

LCA: The X-men speak

Posted Feb 22, 2013 14:12 UTC (Fri) by turol (guest, #29306) [Link]

I don't want a tiling window manager. I want something that will seamlessly replace marco (MATE fork of metacity) and integrate with MATE desktop. There must also be an up-to-date Debian package.

Can awesome and xmonad do that?

LCA: The X-men speak

Posted Feb 22, 2013 14:38 UTC (Fri) by rahulsundaram (subscriber, #21946) [Link]

Yes. It is possible to run MATE with either of these window managers. Debian might have not the latest packages however.

LCA: The X-men speak

Posted Feb 22, 2013 14:50 UTC (Fri) by turol (guest, #29306) [Link]

I will have to look at these sometime. But I suspect I might get snagged by the OpenGL requirement especially since I need Nvidia binary drivers.

LCA: The X-men speak

Posted Feb 23, 2013 5:01 UTC (Sat) by lsl (subscriber, #86508) [Link]

There is no OpenGL requirement for awesome or xmonad. Also, Debian's awesome package is well-maintained by awesome's original author.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds