[xmonad] How to make a window floating above all the other windows and border-less?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Mon Sep 14 00:57:40 EDT 2009


Hi,
  Thanks for the help. I just modified my xmonad.hs like following.
Well, the doCenterFloat seems working, but the toggleBorder part does
not. The window still has a border, and it could receive focus.

manageHook_ :: ManageHook
manageHook_ = composeAll [ className =? "Clock" --> (do
                                                      w <- ask
                                                      liftX $ toggleBorder w
                                                      doCenterFloat) ]

On Sat, Sep 12, 2009 at 12:26 AM, Wirt Wolff <wirtwolff at gmail.com> wrote:
> Excerpts from Magicloud Magiclouds's message of Wed Sep 09 20:45:49 -0600 2009:
>>
>>   But I met a few problems here. I made the windows "over-redirect",
>> so it has no border. Well, how to make it floating above all the
>> others then?
>>
>
> Assuming your window has a property to match in manageHook, (appName used
> here), and already floats because of fixed size, etc:
>
> import XMonad.Actions.NoBorders
>
> appName =? "foo" --> (ask >>= \w -> liftX (toggleBorder w) >> idHook)
>
> If you need to float it with manageHook, then instead of idHook use
> doRectFloat or doCenterFloat as appropriate.
>
> In darcs there is also Layout.Monitor module with additional tools for
> such tasks.
>
> --
> wmw
>



-- 
竹密岂妨流水过
山高哪阻野云飞


More information about the xmonad mailing list