A simple Python script to change brightness based on the content on your screen.
Currently for Windows and MacOS. (working on Linux)
- Clone this repository.
- Run
pip install -r requirements.txt
. - Run
python sys_tray.py
.
- This uses xrandr for brightness control.
- To install xrandr:
- Debian/Ubuntu:
sudo apt install x11-xserver-utils
. - Fedora:
sudo dnf install libXrandr
. - Arch:
sudo pacman -S xorg-xrandr
.
- This uses brightness for brightness control.
- To install brightness:
git clone https://github.com/nriley/brightness.git && cd brightness && make && sudo make install