[xmonad] action of "doFullFloat" upon pressing a key

Daniel Schoepe daniel.schoepe at googlemail.com
Mon Aug 10 18:27:47 EDT 2009


On Mon, Aug 10, 2009 at 05:23:30PM +0200, Christoph Groth wrote:
> Dear xmonad users,
> 
> I wasted several hours trying to find this out myself -- any help is
> highly appreciated.
> 
> My xmonad.hs has
> 
> myManageHook = composeOne
> 	[ transience
> 	, isFullscreen -?> doFullFloat
> 	]
> 
> This makes
> 
> $ xpdf -fullscreen something.pdf
> 
> display on the whole physical screen.  However, it doesn't seem to work
> with video players like vlc and xine.  I would like to have the effect
> of doFullFloat upon pressing a key.  How would one tell xmonad to do
> that?

This should do it:

import Data.Monoid
..
fullFloatFocused = withFocused $ \f -> windows =<< appEndo `fmap` runQuery doFullFloat f

You can then bind fullFloatFocused to a key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20090810/f3330e13/attachment.bin


More information about the xmonad mailing list