Tuesday, October 10, 2017

invert color for one window

1-  if compton is not yet installed, install with command below
$ sudo apt-get install compton

2-  to get WM_CLASS of a window, use command below

$ xprop | grep WM_CLASS   ( click on firfox)
WM_CLASS(STRING) = "Navigator", "Firefox"

$ xprop | grep WM_CLASS ( click on firfox)
WM_CLASS(STRING) = "chromium-browser", "Chromium-browser"

3- to invert color on firefox or chrome

$ compton --invert-color-include '(class_g="Firefox" && class_i="Navigator")'

$ compton --invert-color-include 'class_g="Firefox" '

$ compton --invert-color-include '(class_g="Chromium-browser" && class_i="chromium-browser")'


  1. This article is so helpful as I got to learn the method of install Compton by using the command.Secondly it has also helped me to invert color to chrome.

  2. I am always searching online for articles that can help me. There is obviously a lot to know about this. I get to you a new game. This is hot games in the year– sims 4 cheats. Click link to visit site.