LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools Search this Thread
Old 07-26-2007, 07:51 AM   #1
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5
Thanked: 0
Invert Desktop Colors [SOLVED]


[Log in to get rid of this advertisement]
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 06:24 AM.. Reason: Add SOLVED to subject
Cride5 is offline     Reply With Quote
Old 07-26-2007, 08:24 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva 2010 / PClinuxOS 2009.2 / PCLXDE 2009
Posts: 3,631
Thanked: 95
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 08:27 AM..
{BBI}Nexus{BBI} is offline     Reply With Quote
Old 07-26-2007, 08:25 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Red Beach (NZ)
Distribution: Ubuntu 9.10
Posts: 8,483
Blog Entries: 4
Thanked: 134
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 08:29 AM..
Simon Bridge is offline     Reply With Quote
Old 07-26-2007, 08:36 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva 2010 / PClinuxOS 2009.2 / PCLXDE 2009
Posts: 3,631
Thanked: 95
I mean System Settings...
{BBI}Nexus{BBI} is offline     Reply With Quote
Old 07-26-2007, 08:51 AM   #5
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5
Thanked: 0

Original Poster
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??
Cride5 is offline     Reply With Quote
Old 07-26-2007, 09:17 AM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva 2010 / PClinuxOS 2009.2 / PCLXDE 2009
Posts: 3,631
Thanked: 95
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 09:44 AM..
{BBI}Nexus{BBI} is offline     Reply With Quote
Old 08-15-2007, 06:22 AM   #7
Cride5
LQ Newbie
 
Registered: Jul 2007
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 5
Thanked: 0

Original Poster
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 06:23 AM.. Reason: Add a grin :-D
Cride5 is offline     Reply With Quote
Old 09-27-2009, 05:39 PM   #8
anarkhos
LQ Newbie
 
Registered: Feb 2008
Posts: 1
Thanked: 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?
linuxubuntu anarkhos is offline     Reply With Quote
Old 09-27-2009, 07:01 PM   #9
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Slackware64
Posts: 408
Blog Entries: 21
Thanked: 31
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.
linuxslackware lumak is offline     Reply With Quote
Old 11-15-2009, 05:22 AM   #10
BrainReaper
LQ Newbie
 
Registered: Nov 2009
Posts: 3
Thanked: 0
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.
linuxubuntu BrainReaper is offline     Reply With Quote

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 Off
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 11:31 AM
invert colors rksprst General 4 06-24-2005 11: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 11:27 AM
terminal colors invert gkhattak Linux - Newbie 0 08-29-2002 10:42 PM
Desktop Colors and words get smeared all over the scree! jesusfreak239 Linux - General 2 06-14-2001 10:18 AM


All times are GMT -5. The time now is 06:19 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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration