A thick green or gray mucus discharge coming from your eyes may represent an eye infection caused by bacteria. Bacterial conjunctivitis may cause your eyelid to be completely stuck shut upon awakening in the morning. This type of eye infection is caused by pus producing (pyogenic) bacteria and can cause symptoms such as redness and irritation.