Im allways connected to more than 1 network, this script it not that good if you connect to more than 1 network. Cause then you wold be away on one network, and not away on the other one since you would have more idle time on the none than on the other.
So, how to check idle on all connected networks, and if ALL is higher than the %away.system.auto.check then set away on all networks. If one network has under this limit, and all other over then unset away on all networks.
away.system.auto {
echo Check
if (!$away) && ($idle >= %away.system.auto.check) && %away.system.auto == on {
away Auto away after $duration(%away.system.auto.check,2) of idle
echo -a Set
}
if ($away) && ($idle <= %away.system.auto.check) && %away.system.auto == on {
away
echo -a Unset
}
}