F.LUX will help a bit. Reduce the blue light and adjust the colors of your screen based on the time of day.
Secondly, I am someone who wears glasses, I choose to wear sunglasses when I code, to reduce the brightness of the screen, reduce glare, and stop blue light from entering my eyes. I find this helps a lot.
If you don't wear glasses, consider getting a non-prescription pair of glasses that reflects blue light and stops glare. Huge benefit.