Re: [dev] [wmii] new /rules in tip

From: Kris Maglione <maglione.k_AT_gmail.com>
Date: Fri, 4 Jun 2010 13:33:44 -0400

On Fri, Jun 04, 2010 at 09:24:18AM +0200, Thomas Dahms wrote:
>Hi,
>
>I thought it is worth mentioning how tagrules in the new /rules file work.
>
>I found the following to work (in Python):
>wmii.rules = (
> (ur'MPlayer|VLC', dict(floating=True)),
> (ur'Firefox|Conkeror|Opera|Thunderbird|Shredder', \
> dict(tags='netz')),
> (ur'Emacs|Evince|Adobe Reader', dict(tags='sel')),
>)
>
>which just writes something like
>/Emacs|Evince|Adobe Reader/ tags=sel
>to /rules, for example.

It's also explained in the man page.

>That said, the sh version of wmiirc still uses the old style, though
>there is no /tagrules file any more.

Sorry, I haven't gotten to that yet.

>Btw, you removed the standard colrules from the stock wmiirc.py.

This is true. The new rules class doesn't work with that format. I'm
going to migrate /colrules to the same format once I decide how they
should work.

-- 
Kris Maglione
Intellectual laziness is punishable by brain death.  It is a natural
law.
	--Eric Naggum
Received on Fri Jun 04 2010 - 17:33:44 UTC

This archive was generated by hypermail 2.2.0 : Fri Jun 04 2010 - 17:36:02 UTC