[xmonad] Toggle Window (Always Below <-> Always Above)

Jan-David Quesel Quesel at gmail.com
Mon Jan 31 10:44:31 CET 2011


Hi,

On Sat, Jan 29, 2011 at 10:35:06PM -0500, Brandon S Allbery KF8NH wrote:
> On 1/27/11 05:11 , Jan-David Quesel wrote:
> > The question is how to reveal it in a convenient way. I dont even
> > really have an idea how to find the dzen window in my event hook,
> > as I cannot store a WindowSet in the manageHook as its not
> > compatible with ExtensibleState.
> 
> You don't want to store a StackSet; just store the dzen window (`ask' in the
> manageHook) in ExtensibleState:  this *does* work unless someone broke it
> recently.  Then you can retrieve it in e.g. a keybinding and hide/show as
> appropriate.  (I would arrange for it not to reserve space/set struts, hide
> it by default, and map it while the mod key is held; it should in any case
> be doIgnore-d.)

ah yeah that sounds like a good idea. might have been a
missunderstanding on my side that I didnt come to think of just
using ask to retrieve the window.

I'm now trying to use the following manageHook
checkDock --> do
                win <- ask
                WindowDump windows <- XS.get :: X WindowDump
                XS.put $ WindowDump (win:windows) 
                doHideIgnore

where WindowDump is just
data WindowDump = WindowDump ([Window]) deriving (Read, Show, Typeable)
instance ExtensionClass WindowDump 
    where initialValue = WindowDump []
              extensionType = PersistentExtension

Unfortunatly this just gives type errors. Is there a way to store
the window in the managehook or has this to be done somewhere
else?

Regards,
Jan

-- 
Jan-David Quesel
Carl von Ossietzky Universität Oldenburg
Department of Computing Science
Correct System Design
D-26111 Oldenburg, Germany

Phone: +49 (0)441 798-2376
Fax: +49 (0)441 798-2965
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20110131/6e0a59fc/attachment.pgp>


More information about the xmonad mailing list