Briefly, you have developed dry eyes from not blinking sufficiently when on the computer. When you concentrate on the screen close to your face, you blink less frequently. Because tears
spread over the cornea and sclera, and these tears evaporate and cool the Cornea thereby reducing the oxygen need. When the corneal cells cry out for more oxygen, blood vessels in the adjacent tissue (conjunctiva) respond by enlarging and bring more oxygen from the tiny blood capillaries around the eye to the cornea. Though the eye is more comfortable, it becomes red and makes you uncomfortable.
Treatment may be by: PREVENTION.
Stinging, burning, scratchiness sensation in your eyes
Overflow of tearing
Feeling of that something is in the eye
Blurred vision, usually worsening at the end of the day
Stringy mucus in or around your eyes
Eye fatigue after short periods of reading
Difficulty in wearing contact lenses
Especially when you are staring at your computer screen for long hours, you are probably very concentrated in what you are doing and thus amplifying the problem by forgetting to blink. Remind yourself to blink while you are on your computer or while using your cell phone to text or surf the internet. You can also go to nearby drugstore to purchase preservative free artificial tears. There are several brands on the market that is available without prescription. Many people try different brands to find one that they like the best. Preservative free does not have preservatives so please try to use up each vial within one day. If you do not open the vial it can keep for a long time.
In some instances where the dry eyes are more severe, your ophthalmologist may perform a procedure where the channels to your tear duct are closed temporarily or permanently to create a reservoir of tears. This procedure takes less than 1 minute and is minimal discomfort.
Some things that can irritate the eyes at night include allergens such as dust/dust mites/animal dander/perfumes or dyes from detergents used on bedding/etc, the eyes cracking open while you are asleep and they are drying out, a ceiling fan or AC blowing on the eyes.
Could it be that the eyes are irritated during the evening? Staying up late watching TV or using the computer? Drinking alcohol late? These would be some other possibilities to consider.
Try to eliminate possible allergic irritants. Put some lubricating gel or ointment in the eyes at bedtime and also consider wearing a sleep mask to keep the eyes from drying out.
If these options don't do the trick, then you should definitely see an eye doctor to rule out other causes.