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 comment:

  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.