[xmonad] Managehook which only shifts window if workspace is empty
Brandon Allbery
allbery.b at gmail.com
Sun Feb 12 00:20:44 CET 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120211/4bf28cab/attachment.htm>
More information about the xmonad
mailing list