XFCE color inversion of a single window
person cloud · link
Last update
2026-07-07
2026
07-07
«Compton Manager
display compositing»

invert application's window colors

For example Zoom doens't have a dark theme!

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 --dbus Run 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

  1. Make a keyboard shortcut for the official script:
    • use inverter.sh focused to target current active window
    • use inverter.sh to select by mouse click
  2. run compton --dbus
  3. press the shortcut to apply it