Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on wayland environments #1

Open
I-am-stefan opened this issue Jun 4, 2020 · 3 comments
Open

Does not work on wayland environments #1

I-am-stefan opened this issue Jun 4, 2020 · 3 comments

Comments

@I-am-stefan
Copy link

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

@lawleagle
Copy link
Owner

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 59ce41f#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

@alexipeck
Copy link

What modifications are required to work correctly with Wayland?

@lawleagle
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants