Uhmn... but if i but the /dec inside the loop it will be executed every time it runs trough the loop ?!
I used dec -c because I only want it to decrease by 1 per second.
Btw i forgot to unset %window-close after closing the window but that will be done as well of course.