oled-linux icon indicating copy to clipboard operation
oled-linux copied to clipboard

Does not work on wayland environments

Open I-am-stefan opened this issue 5 years ago • 3 comments

If you using wayland the script does not have any effects on the brightness.

I-am-stefan avatar Jun 04 '20 06:06 I-am-stefan

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

lawleagle avatar Nov 26 '20 04:11 lawleagle

What modifications are required to work correctly with Wayland?

alexipeck avatar Oct 02 '23 10:10 alexipeck

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

lawleagle avatar Nov 25 '23 10:11 lawleagle