In some cases, you might want to invert only some windows of a program (e.g. invert the editor window, but not the "save file" dialog).
For that you can use the first of the two WM_CLASS strings (also called the "instance"):
Basically the script will check if compton is running, if it not running xdotool will find the window id of the active window, with the id xprop will find the WM_CLASS, then with the WM_CLASS it will create the condition and finally will run compton with the condition as argument.
My intention is when I need to invert the colors in the active window I can do it with the Shortcut Ctrl+Alt+U.If I want to go back to the normal colors I will press again the shortcut and the script will detect the compton is running therefore the pkill command will kill the process compton.
So in this way I will only run the compositor when I need it.
I have a dell inspiron 15 5548 laptop. I upgrade it to windows 10. The true color effect isn't make any different. All drivers in my computer are updated already. kindly give me a proper solution for this.