I have photophobia, which is not a fear of light (that's heliophobia) but a high sensitivity to light. I have to wear sunglasses essentially sunup to sundown. I keep my office lights off. My display is set to the lowest brightness and contrast settings I can get away with.
I have Transitions lenses and even those aren't strong enough sunglasses to cope with the brightness. Goodr sunglasses work really well for me as does my $600 prescription sunners. But mostly I try to avoid sunny days and live for the November through March days when the sun sets at 4 PM so I can go outside and enjoy myself.