get screen geometry at runtime