In-reply-to » Meddling with Wayland (Sway) again.

As for redshift, there is this protocol extension:

https://wayland.app/protocols/wlr-gamma-control-unstable-v1

“Protocol extension” sounds complex, but it basically just means: “Here’s an XML file that describes our thing.” It’s much more formalized than specs like EWMH, which are mostly written in prose. If a compositor decides to implement it, it knows exactly which functions to implement, which arguments they get, and so on.

This is a generic extension that allows you to set a gamma table. So, on Sway, you can use this:

https://github.com/minus7/redshift/tree/wayland

However, scroll down to this table:

https://wayland.app/protocols/wlr-gamma-control-unstable-v1#compositor-support

This only works on Sway, not GNOME nor KDE.

For GNOME, there is this other fork:

https://github.com/prahal/redshift/tree/add-gnomerr-method-v0.2

It’s using “GnomeRR”, which appears to be part of “libgnome-desktop”. I couldn’t find official docs for this library (I didn’t search for long, though). Here’s the code: https://gitlab.gnome.org/GNOME/gnome-desktop/-/tree/master/libgnome-desktop They’re basically doing their own thing, outside of Wayland protocol specs (or I misunderstood). It probably makes sense from their point of view.

⤋ Read More