Re: [dev] [wmii] Firefox new windows

From: Nick Guenther <kousue_AT_gmail.com>
Date: Mon, 23 Nov 2009 17:22:19 -0500

On Mon, Nov 23, 2009 at 1:54 PM, Suraj Kurapati <sunaku_AT_gmail.com> wrote:
> On Mon, Nov 23, 2009 at 9:57 AM, Joseph Xu <josephzxu_AT_gmail.com> wrote:
>> On Mon, Nov 23, 2009 at 09:11:50AM -0800, Suraj Kurapati wrote:
>>> On Mon, Nov 23, 2009 at 8:58 AM, Yannic Haupenthal
>>> > you might use
>>> >
>>> >        /Firefox.*/ -> sel # and/or
>>> >        /Shiretoko.*/ -> sel
>>> >
>>> > in your tagrules.
>>>
>>> Awesome!  This is the best solution. :-)
>>> Please disregard my other email in this thread.
>>
>> This doesn't seem to be working for me. Here's my tagrules:
>>
>> $ wmiir read /tagrules
>> /Shiretoko.*/ -> sel
>
> Sorry, I didn't actually try Yannic's suggestion; I just assumed it
> worked.  Oh well, back to the drawing board.
>
> I solved this problem in my Ruby wmiirc by watching for the
> ClientCreate event and forcing the new window onto the current view by
> writing the value of the current tag to that new window's
> /client/.../tags file.
>
> Hope that helps.
>
>

Uh, I'm on 3.6 and the default wmiirc comes with a trailing tagrule of
"/.*/ -> sel", followed by "/.*/ -> 1", which I'm guessing means that
everything not matched previously gets sent to the selected view, but
if there is no selected view (sel = nil) that second last rule won't
apply, so instead it'll send the window to tag '1'. My wmii's
behaviour is what you're looking for, so maybe the problem is just
that you had
Received on Mon Nov 23 2009 - 22:22:19 UTC

This archive was generated by hypermail 2.2.0 : Mon Nov 23 2009 - 22:36:01 UTC