alias markread var %i = 1 | while ($window(*,%i)) { window -g0 $qt($v1) | inc %i }