[xmonad] ppVisible with 3 screens

Adam Vogt vogt.adam at gmail.com
Sat Oct 9 20:18:58 EDT 2010

* On Friday, October 08 2010, Felix Blanke wrote:

>thanks a lot for your work!
>It works :) The short version
>"let prm (one:two:rest) = two:one:rest"
>is enough, because I only need to switch the first two elements.
>With this hack I don't need the colour thing.
>Thanks again!

If you end up using that config with only one screen, that expression
will throw an exception. XMonad will most likely catch it, but the
recovery is to try again. Arguably xmonad should do something smarter,
but until something changes there, you'd get an infinite loop.

So add a fallback case to the definition:

] let prm (one:two:rest) = two:one:rest
]     prm x = x


More information about the xmonad mailing list