4 my $psu=system($ENV{"HOME"}."/bin/psu")==0;
6 open F,"/usr/bin/top -b -n2 -d1|" or die;
12 /^(?:\s*\S+){8}\s*(\S+)\s*\S+\s*([^:\s]*):/ or next;
13 next if $1<90; # CPU %
14 next if $2<($psu?30:1); # minutes it has run
16 system "DISPLAY=:0 xmessage -timeout 30 -default okay -center '$_' 2>/dev/null";