xrandr-invert-colors
xrandr-invert-colors copied to clipboard
On Ubuntu 21.04 with the Wayland graphics system, it doesn't work
I have done and redone all the steps indicated but nothing happens. Everything stays the same, it doesn't invert the colors
Hi,
this tool does not work on Wayland, only on X11. It uses X11-specific functionality (more exactly: as far as I know xrandr
is not available on Wayland, as its architecture is different from X11's.)
Ah ok, thank u very much Zoltan, I din’t know, thank you
Da: Zoltan @.> Inviato: lunedì 18 ottobre 2021 22:55 A: @.> Cc: @.>; @.> Oggetto: Re: [zoltanp/xrandr-invert-colors] On Ubuntu 21.04 with the Wayland graphics system, it doesn't work (#24)
Hi, this tool does not work on Wayland, only on X11. It uses X11-specific functionality (more exactly: as far as I know xrandr is not available on Wayland, as its architecture is different from X11's.)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zoltanp/xrandr-invert-colors/issues/24#issuecomment-946157322, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZKJNDAXYCLAJG77LQ225LUHSCSNANCNFSM5GCPEF3A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
there seems to be a comparable api: https://wayland.app/protocols/wlr-gamma-control-unstable-v1
Thanks, this looks like something usable for inverting colors on Wayland.
I've seen a few important details related to this API :
- " There can only be at most one gamma control object per output, which has exclusive access to this particular output. "
- So at one point in time only one program can control the gamma. Not sure if the window manager / compositor counts here.
- zwlr_gamma_control_v1::destroy : " Destroys the gamma control object. If the object is still valid, this restores the original gamma tables. "
- If the program controlling the gamma stops/exits, then the gamma value is restored. Thus the program controlling the gamma has to run as a background application / service.