Idiom
with one eye on somethingwith one eye on (something/someone)
have/keep one eye on (something/someone) - to give part of your attention to one thing or person while also giving your attention to something or someone else.She sat writing her letter with one eye on the clock.