XFCE color inversion of a single window
Last update
2026-07-07
2026-07-07
«Compton Manager
display compositing»
display compositing»
invert application's window colors
For example Zoom doens't have a dark theme!
- color inversion of a single window
- search linux compton invert colors of window
- https://askubuntu.com/questions/134668/how-to-trigger-a-color-inversion-effect-for-one-window
- https://github.com/chjj/compton/blob/master/dbus-examples/inverter.sh
setup
1 2 3 | wget -O ~/bin/compton-inverter.sh \
https://github.com/chjj/compton/blob/master/dbus-examples/inverter.sh
chmod 755 ~/bin/compton-inverter.sh
|
- window manager tweaks > compositor > disable display compositing
- keyborad > shortcuts:
/home/cloud/bin/compton-inverter.sh focused=>Super+I - session & startup > application autostart > compton-dbus
/usr/bin/compton --dbusRun compton compositing manager
manual toggle
1 2 3 4 5 | xprop | grep WM_CLASS # and click on the desired window # WM_CLASS(STRING) = "leafpad", "Leafpad" pkill compton compton --invert-color-include '(class_g="Leafpad" && class_i="leafpad")' |
dbus toggle
- Make a keyboard shortcut for the official script:
- use
inverter.sh focusedto target current active window - use
inverter.shto select by mouse click
- use
- run
compton --dbus - press the shortcut to apply it
