[xmonad] Managehook which only shifts window if workspace is empty
Toby Cubitt
tsc25 at cantab.net
Sat Feb 18 18:00:06 CET 2012
On Sat, Feb 11, 2012 at 06:20:44PM -0500, Brandon Allbery wrote:
> On Sat, Feb 11, 2012 at 18:11, Brandon Allbery <allbery.b at gmail.com> wrote:
>
> > className =? "mutt" --> liftX (doShiftEmpty "email")
> >
>
> Oops, slightly wrong; liftX will propagate the result back, which in this
> case is () which is not compatible with (Endo WindowSet) as expected by
> ManageHook. The correct fix is
>
> > appName =? "mutt" --> liftX (doShiftEmpty "email") >> idHook
>
> which discards the () and substitutes an appropriate do-nothing Endo
> WindowSet.
>
> --
> brandon s allbery allbery.b at gmail.com
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
--
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain
email: tsc25 at cantab.net
web: www.dr-qubit.org
More information about the xmonad
mailing list