Re: [wmii] rules in a separate file

From: redondos <redondos_AT_gmail.com>
Date: Mon, 24 Apr 2006 23:14:17 -0300

On Tue, Apr 25 03:11, neptun_AT_gmail.com wrote:
> I've decided to keep my rules in a separate file from wmiirc.
> I've modified the "TAGGING RULES" section in wmiirc like this:
>
> # TAGGING RULES
> wmiir write /def/rules<$HOME/.wmii-3/rules
>
> and put all the rules in ~/.wmii-3/rules
>
> This allows me to edit the rules on-the-fly.
> I've created a new action (~/.wmii-3/ed-rules) for this:
>
> #!/bin/bash
> frules=$HOME/.wmii-3/rules
> aterm -e vim $frules
> wmiir write /def/rules<$frules
>
> So now all I have to do is press Mod-A, start ed-rules and edit that
> file. When I'm finished the new rules are automatically applied.
>
> I know I could have done the same from within wmiirc and then running
> it again.. but I like this way better.. It's cleaner.

Yeap, good idea.

-- 
redondos

Received on Tue Apr 25 2006 - 04:14:27 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:03:27 UTC