[dev] [wmii] new /rules in tip

From: Thomas Dahms <t_AT_skwillt.de>
Date: Fri, 04 Jun 2010 09:24:18 +0200

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.

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

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

-- 
Thomas Dahms
Received on Fri Jun 04 2010 - 07:24:18 UTC

This archive was generated by hypermail 2.2.0 : Fri Jun 04 2010 - 07:36:01 UTC