Dear Vasilii, have you tried to apply the compiz filter solution to the Unity window manager of Ubuntu? I'd appreciate any help on this. I'm on Ubuntu 18 and would like to get it working with unity as a last resort.
Haven't you thought about changing the source code of Xcalib? It's a single C file and all we would need is an RGB shift method that does the 180 degree turn in HUE that should be easy enough.
Thanks for the collection of info.