debian/ubuntu - invert all colours in desktop session (colors)

16,240

Solution 1

A window manager independent way is:

xcalib -invert -alter

From the xcalib man page

xcalib loads 'vcgt'-tag of ICC profiles to the X-server using the XVidMode Extension in order to calibrate your display.

You can install it using sudo apt-get install xcalib. To make it more convenient assign a keyboard shortcut to the command (e.g. Cmd+Alt+Ctrl+8).

Solution 2

The following works on Pop-OS 21, which is an Ubuntu variant.

Settings > Accessibility > Zoom > Magnifier > Full Screen

enter image description here

Settings > Accessibility > Zoom > Color Effects > White on Black

enter image description here

Alt-Super-8

enter image description here

Share:
16,240

Related videos on Youtube

Dan Stowell
Author by

Dan Stowell

Updated on September 18, 2022

Comments

  • Dan Stowell
    Dan Stowell over 1 year

    Sometimes I need to flip from a light colour scheme to a dark one quickly, and I need it to apply not just to the desktop theme but also to any webpages that are open etc.

    On the Mac there's a neat shortcut for this (Cmd+Alt+Ctrl+8) - it simply inverts all colours displayed, so the screen looks like a photographic negative.

    Is there an equivalent of this that I can use in my debian/ubuntu desktop sessions?

    • terdon
      terdon about 11 years
      What Desktop Environment/Window manager do you use? Gnome? Unity? Cinnamon?
    • Dan Stowell
      Dan Stowell about 11 years
      Thanks for the nudge - I'm using LXDE/Openbox, but I realise I was assuming the effect would happen lower down (in Xorg) - and there is an answer that does do this, hurrah.
  • Tristan
    Tristan over 7 years
    It only inverts one of my two displays
  • Afr
    Afr over 7 years
    @TristanT use -s 0 for first screen and -s 1 for second. See also.
  • scjorge
    scjorge almost 7 years
    gotta be carefulnif you are using redshift superuser.com/q/874859/202217
  • Jonny Asmar
    Jonny Asmar over 6 years
    Using redshift over here. All you've got to do after the blink is fire a redshift -o Also, I think xcalib may have been updated? Or is better compatible with some drivers. Works fine on all 3 of my connected displays.
  • sashoalm
    sashoalm over 5 years
    If you get "Error - unsupported ramp size 0", see askubuntu.com/questions/930084/…
  • Reb.Cabin
    Reb.Cabin over 4 years
    $ xcalib -invert -alter Error - unsupported ramp size 0 in fact produces this error for every option
  • joe
    joe over 2 years
    This leaves a weird square trail behind my cursor, but otherwise works well. If someone knows how to use xcalib (or any other approach) in a way that doesn't affect my xrandr brightness settings, I'd love to hear! Until this is good enough - thanks!
  • Reb.Cabin
    Reb.Cabin over 2 years
    @joe I confirm the "weird square trail." Annoying but merely annoying in my opinion for ordinary work. Would be bad for a screencast.