Is there a way to invert colors in X. It would be even more useful if the answer was something I could bind to a keyboard shortcut(a command and not a setting that will require a restart if X).
You need the
xcalib -i -a
Unfortunately, this only inverts the colors on one display. Feb 15, 2013 at 13:04
-s, -screenoption that may be useful.– cYrusFeb 15, 2013 at 15:56
And to revert the inversion, just repeat the very same command. Mar 21, 2019 at 9:50
If you are like me and you have tried xcalib but you have encountered an error like this on debian:
xcalib: unsupported ramp size
Then you could use an alternative like: xrandr-invert-colors.
First clone the repository
git clone "https://github.com/zoltanp/xrandr-invert-colors.git"
After that you can install the build-essential package and you can compile the code with that commands:
sudo make deps-apt make sudo make install
After that inverting colors on the screen is simple as: