This utility allows to set different screen brightness to each window. It may be useful when frequently switching between different windows, some of which have a dark mode, while others don't.
# install dependencies
pip install -r requirements.txt
# run the program
python screen_brightness.py
- Open a window, set screen brightness to a certain level (e.g. 80%).
- Switch to another window using Alt+Tab. Set the screen brightness to a different level (e.g. 30%).
- Switch back to the first window, the brightness will be adjusted automatically.
- Only Windows is supported.
- Only one screen is supported.
- Only laptops have been tested, not guaranteed to work on a desktop.
- Adjustment only works while switching using Alt+Tab.