[xmonad] Accessing minimized windows in Xmonad.Layout.Minimize

Raghavendra D Prabhu raghu.prabhu13 at gmail.com
Fri Nov 16 03:00:00 CET 2012

Hi Adam,

* On Wed, Nov 14, 2012 at 06:15:28PM -0500, adam vogt <vogt.adam at gmail.com> wrote:
>On Tue, Nov 13, 2012 at 5:10 PM, Raghavendra D Prabhu
><raghu.prabhu13 at gmail.com> wrote:
>> Hi,
>> I am using Xmonad.Layout.Minimize with BoringWindows. When I minimize more
>> windows, I would like to access them out of order than do one by one through
>> RestoreNextMinimizedWin or restore from taskbar (I don't have taskbar,
>> trayer + xmobar). Is there a way to hook it into Xmonad.Prompt or
>> XMonad.Actions.WindowBringer etc.?  It will also be helpful since if I
>> forget which windows have been minimized.
>Hi Raghavendra
>To be able to restore and then bring, the function might look like:
>bringRestored :: Window -> X ()
>bringRestored w =do
>    broadcastMessage (RestoreMinimizedWin w)
>    windows (bringWindow w) -- or something else like
>Then you could to hook up XMonad.Prompt doing something similar to
>to supply that Window argument. Using XMonad.Util.Dmenu is shorter but
>might be broken depending on how your dmenu version matches up with
>your contrib version. In any case you should get the idea of how it
>can be done.
>bringRestoredWindow = do
>  wm <- windowMap
>  w <- dmenu (M.keys wm)
>  whenJust (M.lookup w wm) bringRestored
>xmonad mailing list
>xmonad at haskell.org

Thanks, it works. I had looked at 
earlier but couldn't do the necessary plumbing between the 
functions; however, using X.U.Dmenu for now.

Raghavendra Prabhu
GPG Id : 0xD72BE977
Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977
www: wnohang.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20121116/e4bbb272/attachment.pgp>

More information about the xmonad mailing list