<br><br><div class="gmail_quote">On Fri, Oct 23, 2009 at 9:18 PM, Rickard Nilsson <span dir="ltr">&lt;<a href="mailto:rickard.nilsson@telia.com">rickard.nilsson@telia.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Den 2009-10-23 11:25:01 skrev Damian &lt;<a href="mailto:damian.only@gmail.com" target="_blank">damian.only@gmail.com</a>&gt;:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I would like to keep firefox always as a main window, so that, for<br>
instance when I open the downloads window it will be shown as a small<br>
window. Is there any way to do this in xmonad?<br>
</blockquote>
<br></div>
I use the following ManageHook to do just this:<br>
<br>
 keepMaster :: String -&gt; ManageHook<br>
 keepMaster c = assertSlave &lt;+&gt; assertMaster<br>
   where<br>
     assertSlave = fmap (/= c) className --&gt; doF W.swapDown<br>
     assertMaster = className =? c --&gt; doF W.swapMaster<br>
<br>
</blockquote><div><br>Good ManageHook! why not sending a patch to add it to ManageHelpers?<br><br>Btw, I&#39;m now using it in with my new currentWs query (I&#39;ve just sent the patch) in my web workspace like this:<br>

<br>    , [ className =? &quot;Shiretoko&quot;  --&gt; doF (W.shift &quot;3:web&quot;) ]<br>    , [ currentWs =? &quot;3:web&quot;        --&gt; keepMaster &quot;Shiretoko&quot; ]<br><br>(Shiretoko is the className of the Firefox window in ArchLinux)<br>

<br>byebye!<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Regards,<br><font color="#888888">
  Rickard</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
</div></div></blockquote></div><br>