Accessing minimized windows in Xmonad.Layout.Minimize

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. Regards, -- Raghavendra Prabhu GPG Id : 0xD72BE977 Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977 www: wnohang.net

On Tue, Nov 13, 2012 at 5:10 PM, Raghavendra D Prabhu
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 XMonad.StackSet.focusWindow Then you could to hook up XMonad.Prompt doing something similar to http://xmonad.org/xmonad-docs/xmonad-contrib/src/XMonad-Prompt-Window.html#w... 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 -- Adam

Hi Adam,
* On Wed, Nov 14, 2012 at 06:15:28PM -0500, adam vogt
On Tue, Nov 13, 2012 at 5:10 PM, Raghavendra D Prabhu
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 XMonad.StackSet.focusWindow
Then you could to hook up XMonad.Prompt doing something similar to http://xmonad.org/xmonad-docs/xmonad-contrib/src/XMonad-Prompt-Window.html#w... 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
-- Adam
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
Thanks, it works. I had looked at http://xmonad.org/xmonad-docs/xmonad-contrib/src/XMonad-Prompt-Window.html earlier but couldn't do the necessary plumbing between the functions; however, using X.U.Dmenu for now. Regards, -- Raghavendra Prabhu GPG Id : 0xD72BE977 Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977 www: wnohang.net
participants (2)
-
adam vogt
-
Raghavendra D Prabhu