[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmonad
Subject:    Re: [xmonad] Keep a specific window always as a master window
From:       Ismael Carnales <icarnales () gmail ! com>
Date:       2009-10-28 19:48:10
Message-ID: d83f7a8d0910281248u4a1b58ecr9a8ea6ead8f1c5ce () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Oct 23, 2009 at 9:18 PM, Rickard Nilsson
<rickard.nilsson@telia.com>wrote:

> Den 2009-10-23 11:25:01 skrev Damian <damian.only@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
>
>
Good ManageHook! why not sending a patch to add it to ManageHelpers?

Btw, I'm now using it in with my new currentWs query (I've just sent the
patch) in my web workspace like this:

    , [ className =? "Shiretoko"  --> doF (W.shift "3:web") ]
    , [ currentWs =? "3:web"        --> keepMaster "Shiretoko" ]

(Shiretoko is the className of the Firefox window in ArchLinux)

byebye!


> Regards,
>  Rickard
>
> _______________________________________________
> xmonad mailing list
> xmonad@haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>

[Attachment #5 (text/html)]

<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>



_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic