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

Rickard Nilsson rickard.nilsson at telia.com
Fri Oct 23 19:18:59 EDT 2009

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
      assertSlave = fmap (/= c) className --> doF W.swapDown
      assertMaster = className =? c --> doF W.swapMaster


More information about the xmonad mailing list