Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I code on an IDE which has a dark theme. I require a high brightness while doing this task.

But when executing code, I use the browser, (since this is web development), and the whites of the browser coupled with high brightness cause strain.

Is there a way to control brightness with respect to the window which is active?

That is, if the IDE was open, the brightness would be max and if the browser was open then the brightness would be low.

Brightness here refers to the monitor backlight.

share|improve this question

1 Answer 1

Brightness is a monitor-related property, not a window's. That means brightenss changes for all that's displayed on a monitor at the same time.

I see 2 ways out of your predicaments:

  1. Use dual monitors - have your IDE on one and the rest of the windows on the other. Set your IDE's monitor's brightness to full
  2. Write a shell script (whichever OS you use supports it) that sets the brightness of the monitor every time the window's focus changes. If the window's title is equal to your IDE's set brightness to full, or otherwise lower it
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.