LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-26-2007, 06:51 AM   #1
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
Invert Desktop Colors [SOLVED]


Hi all, I spend a lot of time reading black on white, which just aint healthy on the eyes. I've tried turning down the brightness and using a dark theme, but none of these fixes were any good. The ultimate solution is to invert the screen colours, but my monitor can't do it and surprisingly, Linux doesn't seem to have any good packages for it.

I've tried gnome's 'magnifier' but although it can do it with...
Code:
magnifier --zoom-factor=1 --source-display=:0 -mfi
...its a bit messy, as the screen moves around and there is a giant crosshair in the way.

Does anyone have a better solution?

Last edited by Cride5; 08-15-2007 at 05:24 AM. Reason: Add SOLVED to subject
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-26-2007, 07:24 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,296

Rep: Reputation: 205Reputation: 205Reputation: 205
Try your control centre and look under Appearance & Themes--> Colours. Click on the part(s) you want to change in the little display, then look under Widget Colour and click on the colour bar to bring up the colour pallette. There are also some pre-set colour schemes.

Last edited by {BBI}Nexus{BBI}; 07-26-2007 at 07:27 AM.
 
Old 07-26-2007, 07:25 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Beryl inverts the colors on a shortcut key.
Gnome has a "high contrast inverse" theme.

I imagine KDE has a tool - metacity is quite limited in some ways.

You can normally change the default background color on applications... my gudit screen is yellowed parchment colored and the terminal is grey-on-black.

The low-tech option is to wear tinted glasses.

Quote:
Originally Posted by {BBI}Nexus{BBI}
Try your control centre and look unde
Gnome dosn't have a control center... the metacity theme manager dosn't have a color-pallet option - though you can fiddle the theme colors, it doesn't affect the reading space in text editors, terminals, pdf-readers and wordprocessors.

Last edited by Simon Bridge; 07-26-2007 at 07:29 AM.
 
Old 07-26-2007, 07:36 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,296

Rep: Reputation: 205Reputation: 205Reputation: 205
I mean System Settings...
 
Old 07-26-2007, 07:51 AM   #5
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Cheers for the feedback!

Sorry though, I should have said. I'm not a KDE user. I used to be, and did use a dark theme, but as Simon pointed out, a dark theme doesn't actually affect the reading space of most apps - Firefox for example).

At the moment I use Gnome, and the 'High Contrast Inverse' theme again only affects window decorations, menus etc. Not the reading space. A few apps, like Kpdf allow you to invert the colours, but I couldn't find that feature on some of the other ones. The most notable of which is Firefox. Firefox allows you to select different background colours, but it basically ruins the look of website. Inversion is a good solution because everything is inverted.

Using Beryl is a good fix, if you can get it to work. Alas, it keeps breaking on my poor Ubuntu machine - probably because its still in development and has a few bugs.

Are there any other inversion solutions out there??
 
Old 07-26-2007, 08:17 AM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,296

Rep: Reputation: 205Reputation: 205Reputation: 205
This doesn't solve your problem, but it seems this is an issue to be addressed, see here: https://wiki.ubuntu.com/Accessibilit...s/ColorFilters Another low-tech option is to use a screen filter.

Last edited by {BBI}Nexus{BBI}; 07-26-2007 at 08:44 AM.
 
Old 08-15-2007, 05:22 AM   #7
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Kay, after a bit of messing about I've found some great patches for gnome-mag, which I'm assuming will be packaged in the latest version at some point. In the mean time, download the sources for gnome-mag 0.14.4 and go here for the relevant patches:

(1) To enable gnome-mag to invert the screen, with zoom-factor 1 and no mouse follow:
http://bugzilla.gnome.org/show_bug.cgi?id=422347

(2) To enable control over the crosshair:
http://bugzilla.gnome.org/show_bug.cgi?id=465120

Assuming you have the right dependencies installed on your system you can then do:
Code:
$ cd dir_with_sources
$ ./configure
$ patch -p0 <patch_file
$ make
$ sudo make install
If that all goes well you can build an easy-to-use screen inversion script with the following

Code:
#!/bin/sh
if echo "`pstree`" | grep -q "magnifier"
then
        killall -9 magnifier
else
        magnifier -fiz 1 &
fi
And hay presto - I can invert my screen at the touch of a button!

Last edited by Cride5; 08-15-2007 at 05:23 AM. Reason: Add a grin :-D
 
Old 09-27-2009, 04:39 PM   #8
anarkhos
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Quote:
And hay presto - I can invert my screen at the touch of a button!

Nice trick, it works almost perfectly. The one problem is the mouse-trail latency. I tried playing with the mouse-latency option, and didn't have any luck. Has anyone else got the mouse to work well with magnifier?
 
Old 09-27-2009, 06:01 PM   #9
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
The problem with dark themes is generally websites that like to change the color of text when you type into a text box. But they don't bother to change the background. Then you end up trying to read something like darkblue on a gray background which is even harder on the eyes.

Fortunately, there is a firefox add-on called stylistic. It lets you set up global CSS definitions to override a web-page's theme. It may take some time to track down all the annoyances such as buttons or other objects defined in different ways, but at least you will be able to use a dark theme. The only problem is with the 'browse' button. This is a special button that firefox doesn't like to set any settings for.
 
Old 11-15-2009, 04:22 AM   #10
BrainReaper
LQ Newbie
 
Registered: Nov 2009
Location: Barcelona, Europe
Distribution: Debian Testing, Linux Mint Debian Edition
Posts: 6

Rep: Reputation: 1
Quote:
Originally Posted by Cride5 View Post
Code:
magnifier --zoom-factor=1 --source-display=:0 -mfi
...its a bit messy, as the screen moves around and there is a giant crosshair in the way.

Does anyone have a better solution?
Just don't set the -m option and screen will keep fixed to upper left corner. -z 1 option ensures this is not a problem.

Code:
magnifier -z 1 -fi
This is what finally worked on my computer, thought it is a bit inefficient and slow. Hope it works for you too.
 
Old 04-13-2010, 07:32 AM   #11
fault
Member
 
Registered: Sep 2004
Distribution: Archlinux
Posts: 30

Rep: Reputation: 17
I came here because i was looking for a simple solution to get an inverted X on the fly.

I found an easier solution for this elsewhere. Reference

Code:
/usr/bin/xcalib -invert -alter
if u dont find the tool in ur reps, the project page can be found on sourceforge. They also have prebuilt binaries for linux.
 
2 members found this post helpful.
Old 04-12-2011, 01:15 PM   #12
szilagyi
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 1
Thank you, fault! I have had the same question as Cride5 since having to use Firefox and Thunderbird daily, and also wondered, where is something like the Mac Invert Colors toggle? My eyes love you. (Actually, I had also been customizing themes in Gnome and Firefox, setting colors also in Thunderbird, installing Firefox add-ons like NoSquint, etc. So, my eyes were mostly OK, but it was a huge waste of time and an uphill battle.)

As search engine fodder, if anyone else is frustrated by Thunderbird's HTML rendering colors (similar black-on-white, hard-to-change situation), or, as others have mentioned here, the difficulty of getting some web sites to display readably, xcalib -i -a is a good solution. This is how you avoid fighting the entire world's default color scheme in every application and every web site. This is turning the right knob in the right place.

Last edited by szilagyi; 04-12-2011 at 01:23 PM.
 
Old 04-12-2011, 01:54 PM   #13
szilagyi
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 1
For any other Ubuntu users (probably any Compiz users), I note that this has been hiding right under my nose. Under System/Preferences/CompizConfig Settings Manager/Negative, you can enable a Compiz plugin that inverts colors for individual windows or the whole screen. The default key binding for the latter is S-m. (On my keyboard, and I believe usually, the Windows key is bound to Super.) So this winnage has been a keystroke away the whole time.

The documentation even points to xcalib -i -a and points out that Compiz needs certain OpenGL extensions to do this, whereas xcalib may work even when those OpenGL extensions aren't exposed to Compiz.

Last edited by szilagyi; 04-12-2011 at 01:58 PM. Reason: removed accidental implication (that S-n doesn't exist)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer KDE desktop settings (fontsize, colors etc.) from one pc to another ? bubaka Linux - Desktop 2 07-21-2007 10:31 AM
invert colors rksprst General 4 06-24-2005 10:31 PM
How do I change the colors (and get rid of the shadow) on the kde desktop font? davee Linux - Newbie 3 05-30-2005 10:27 AM
terminal colors invert gkhattak Linux - Newbie 0 08-29-2002 09:42 PM
Desktop Colors and words get smeared all over the scree! jesusfreak239 Linux - General 2 06-14-2001 09:18 AM


All times are GMT -5. The time now is 09:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration