Take a break every 1 hour for 2-5 minutes. Use rehydration drops if you have dry eyes. Avoid low lighting areas and I try to reduce brightness in my laptop if it hurts my eyes. Supplements for Vitamin A,C, B3 etc. are also helpful (use it after a medical advice though).