> > > 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 <rain_at_bluecherry.net>
#!/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" $*"
}
}
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Mar 17 2003 - 12:16:22 GMT