[xmonad] Keep a specific window always as a master window

Damian damian.only at gmail.com
Mon Oct 26 04:06:28 EDT 2009

On Sat, Oct 24, 2009 at 12:18 AM, Rickard Nilsson
<rickard.nilsson at telia.com> wrote:
> Den 2009-10-23 11:25:01 skrev Damian <damian.only at gmail.com>:
>> Hi,
>> I would like to keep firefox always as a main window, so that, for
>> instance when I open the downloads window it will be shown as a small
>> window. Is there any way to do this in xmonad?
> I use the following ManageHook to do just this:
>  keepMaster :: String -> ManageHook
>  keepMaster c = assertSlave <+> assertMaster
>   where
>     assertSlave = fmap (/= c) className --> doF W.swapDown
>     assertMaster = className =? c --> doF W.swapMaster
Thank you all for your answers. I also added this, to my manage hooks:
    (doF W.swapDown)
to prevent new windows from being open in the master pane.


More information about the xmonad mailing list