Tip: invert colours in X (useful for a night mode)

Share your own howto's etc. Not for support questions!

Tip: invert colours in X (useful for a night mode)

Postby confuseling » 2014-04-15 04:47

Code: Select all
xcalib -display :0 -invert -alter


is the magic invocation (though you'll need to install xcalib first).

Bind it to a key in your WM, and suffer eye searing brightness during insomniac browsing sessions no more...
Last edited by confuseling on 2014-04-15 05:12, edited 2 times in total.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here
confuseling
 
Posts: 2143
Joined: 2009-10-21 01:03

Re: Tip: invert colours in X (useful for a night mode)

Postby dasein » 2014-04-15 04:53

Duddn't work in VirtualBox :(
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Tip: invert colours in X (useful for a night mode)

Postby confuseling » 2014-04-15 05:05

True. Slightly annoying.

Still, if you run it on the host it affects the guest's display too, so not a major issue. If anyone has any insight as to why (or knows a good way to do it), it'd be good to know though.

You can try it fairly safely on bare metal of course, since if you do it twice you should end up exactly back where you started. I'm saying nothing about taste. Some websites look... a little funky :)
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here
confuseling
 
Posts: 2143
Joined: 2009-10-21 01:03

Re: Tip: invert colours in X (useful for a night mode)

Postby confuseling » 2014-04-15 08:15

Another slight pain point for me is I've got a laptop that's more or less constantly plugged into an external monitor. I can't figure out how to get this to affect that too - as far as I know it's still considered part of 'display :0', but it ignores it.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here
confuseling
 
Posts: 2143
Joined: 2009-10-21 01:03


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable