oled-linux
oled-linux copied to clipboard
Does not work on wayland environments
If you using wayland the script does not have any effects on the brightness.
Before I added multiple screens and night light support, I used redshift -P -O $current_shift -b $percent which should theoretically work on Wayland too.
An example of how I used it can be found here https://github.com/lawleagle/oled-linux/commit/59ce41f52a6baf0df445c98ac844047fe046a5c6#diff-9b6d02ec6ef12d7bb3a4e5ae1efd81562366b7d6a027b1703cfbd9853c11a966
I don't know how to target only specific monitors without xrandr, but if you know or find out, it's just a matter of replacing the following 3 lines with their equivalents that would work in Wayland.
redshift -m randr:screen=$oled_screen -P -O $current_shift -b $percent
redshift -m randr:screen=$line -P -O $current_shift
xrandr --output $oled_screen --brightness $percent
What modifications are required to work correctly with Wayland?
I don't know exactly what the equivalent commands are on wayland, but I mentioned in the above comment conceptually what changes are needed and what commands need to be adapted to get wayland compatibility