> > > So much for the theory.  Unfortunately, many people rely on the
> > > old, broken behaviour.  It should be relatively easy to write a
> > > script that changes your config, though.
> > > 
> > > Bye
> > > 
> > > Dominik ^_^  ^_^

I've attached a simple awk script (it SHOULD be POSIX awk compliant) to
do the conversion.  The only downside is that it eats whitespace on
converted lines.

-- 
Ben Winslow <[EMAIL PROTECTED]>
#!/usr/bin/awk -f

function behavior_changed(command)
{
        if (command == "animatedmove" ||
                command == "move" ||
                command == "movetopage" ||
                command == "movetoscreen" ||
                command == "resize" ||
                command == "resizemaximize" ||
                command == "resizemove" ||
                command == "resizemovemaximize")
                        return 1;
        return 0;
}

{
        if (tolower($1) == "mouse" && behavior_changed(tolower($5))) {
                buildfunction[tolower($5)] = 1;
                $5 = "Converted_Interactive"tolower($5);
        }
        print $0;
}

END {
        for (current in buildfunction) {
                print "\nDestroyFunction Converted_Interactive"current
                print "AddToFunc Converted_Interactive"current
                print "+ \"I\" "current" $*"
        }
}

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to