Fix timeout, detect i3