Uncategorized

Control (Desktop) Screen Brightness (Gamma) with python on linux


I am putting together my first python desktop app and am integrating the scripts I made for automating stuff/convenience into said program.

In bash, I use xrandr to adjust my gamma values like this

xrandr --output DP-0 --brightness 1 #brightness 100%
xrandr --output DP-0 --brightness 0.5 #brightness 50%

I’d like to use a library if possible and would love to not have to install additional software. I will take anything if thats needed though.

I’m searching for the equivalent to insert into my python script/application but I cant find it. Google only shows how to do it on windows, how to do it on laptops, how to adjust it in photos and so on and so forth.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *