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

Jan-David Quesel quesel at gmail.com
Thu Jan 27 11:11:55 CET 2011


Hi,

first let me thank you for your suggestion.

Now lets take a quick look at what is currently done and where
the implementation issues lie regarding your suggestions.

doIgnore is what is currently done. manageDocks is just short for
checkDock --> doIgnore. Thats also whats probably causing the
issue with dzen being on top after restart.

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.

The same issue occurs with your 2nd suggestion. 

How do I get the window in the eventHook to call reveal/hide on it?

Any suggestions?

Jan

P.S. I think the X.L.Monitor packages looks interesting but it
still has a todo regarding the same task, as it also needs to
store which window it manages.

On Wed, Jan 26, 2011 at 07:46:36PM +0300, kevind256 wrote:
> As an idea of how to do this, I might have tried doIgnore on dzen
> window as described there:
> http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Doc-Extending.html#15
> And then assign to keys some shell or xmonad commands that move that
> window in and out of the screen (maybe even roll it in/out animated).
> 
> Another idea is to use doFloat like described on above link and then
> assign to keys the hide and reveal functions described here:
> http://xmonad.org/xmonad-docs/xmonad/XMonad-Operations.html#v%3Ahide
> 
> It's too bad my Haskell is too bad to express this
> 
> On 1/26/11, Israel Jacques <mrkotfw at gmail.com> wrote:
> > I too am very curious as to how to (properly) do this. I have not been
> > able to find a solution.
> >
> > On Tue, Jan 25, 2011 at 00:32, Jan-David Quesel <quesel at gmail.com> wrote:
> >> Hi,
> >>
> >> using AvoidStruts I have implemented some way to show my status
> >> bar only while holding my modkey. Unfortunatly this method is
> >> quite slow and ineffective as all windows on the current screen
> >> resize and redraw when pressing the modkey. Instead I'm searching
> >> for a way to reorder the stackset such that my dzen window
> >> appears either above all other windows (while the modkey is
> >> pressed) or below all other.
> >>
> >> Some implementation like that would although solve another issue
> >> I'm experiencing: When I restart xmonad my dzen bar is suddenly
> >> on top of all other windows until I create a new one, that then
> >> enables all other windows to again cover the status bar.
> >>
> >> Someone got an idea how to implement such an behavior based on
> >> what is already done with those eventhooks in my current
> >> configuration? (see line 130-152)
> >>
> >> Best regards,
> >> Jan
> >>
> >> P.S. I have attached my xmonad configuration for reference.
> >>
> >> --
> >> 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
> >>
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: GnuPG v1.4.10 (GNU/Linux)
> >>
> >> iEYEARECAAYFAk0+io8ACgkQzWWUYNynIPEJJACfcluX6sDooiBSRO2M8JbWc9Zw
> >> X7AAnR4xCN1ylohou3A7OwEn9y2JauHM
> >> =an5t
> >> -----END PGP SIGNATURE-----
> >>
> >> _______________________________________________
> >> xmonad mailing list
> >> xmonad at haskell.org
> >> http://www.haskell.org/mailman/listinfo/xmonad
> >>
> >>
> >
> > _______________________________________________
> > xmonad mailing list
> > xmonad at haskell.org
> > http://www.haskell.org/mailman/listinfo/xmonad
> >
> 
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
> 

-- 
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/20110127/27a8a8f3/attachment-0001.pgp>


More information about the xmonad mailing list