button={ name=QUIT action=QUIT }
button={ label="start timer" name=doit
    action="SET lockcheck running 1"
    action="( touch /tmp/busy.lck; sleep 6; rm /tmp/busy.lck )& "
}

timer={
    name=lockcheck
    interval=1
    running=0
    test={
        condition="test -f /tmp/busy.lck"
        true={
                action="SET doit label RUNNING"
                action="SET doit sensitive 0"
                action="SET doit background red"
        }
        false={
                action="SET doit label start timer"
                action="SET doit sensitive 1"
                action="SET doit background white"
                action="SET lockcheck running 0"
        }
    }
}
