-
Notifications
You must be signed in to change notification settings - Fork 11
Gamma
Federico Di Pierro edited this page Jun 7, 2023
·
7 revisions
Since Clightd 5.0, Gamma API exposes 3 different plugins (priority-listed below):
- /org/clightd/clightd/Gamma/Xorg
- /org/clightd/clightd/Gamma/Wl
- /org/clightd/clightd/Gamma/Drm
When calling any of those, their plugin will be used; when calling main object path first available plugin will be used instead given the above priority-listed list.
Note that Changed
signal will be sent on both main object path and used plugin's path.
The API is the same for any of those plugins; but first 2 input parameters ("ss") meaning changes:
- $DISPLAY (defaults to ":0")
- $XAUTHORITY (defaults to caller "$HOME/.Xauthority")
- $WAYLAND_DISPLAY (defaults to "wayland-0")
- $XDG_RUNTIME_DIR (defaults to caller "/run/user/$uid")
On Wayland, Gamma smooth transitions are not supported.
Support on wayland requires the compositor to implement wlr-gamma-control-unstable-v1
protocol.
- card (if empty, defaults to first drm device it finds through udev)
- unused