[xmonad] Smarter multi-screen layouts (ab)using XRandR

Joachim Breitner mail at joachim-breitner.de
Thu May 6 09:07:20 EDT 2010


Hi,

I always found it irritating how xmonad behaves with more than one
screen, especially how workspace switching on one screen is “non local”,
i.e. affects other screens. to clarify with two screens:

 A  B
[3][1] (focus on B)
Press NextWorkspace
[3][2] (focus on B)
Press NextWorkspace
[2][3] (focus on B)

I would naively expect the last configuration to be 
[3][3] (focus on B)
which is of course not possible. Or is it?

Assume for now that both screens have the same resolution. Imagine that
xmonad would transparently make screen B cover the same part of the
virtual screen size as A, while the situation is
[3][3] (focus on B)
and move it back to its original position when moving on to
[3][4] (focus on B). Wouldn’t this be much more intuitive?

And it is not only about intuitiveness, but also very useful. When
holding presentations, I tend to use a tool like pdf_presenter_console
and therefore, my laptop screen (A) and the projector screen (B) display
different workspaces. But when I then want to demonstrate something
live, I’d like to have the same workspace on both.

This is just a discussion starter. I have no code, and not solved all
corner cases. 

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
  mail: mail at joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
  JID: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/xmonad/attachments/20100506/c72584d8/attachment.bin


More information about the xmonad mailing list