View Single Post
Posts: 49 | Thanked: 93 times | Joined on Jan 2012 @ Finland
#2
Hi! You can change the colour profiles through a GConf key. Here how it goes:

Code:
gconftool-2 --set --type=string /system/osso/dsm/display/color_profile Muted

gconftool-2 --set --type=string /system/osso/dsm/display/color_profile Neutral

gconftool-2 --set --type=string /system/osso/dsm/display/color_profile Vivid
In addition, you may want to create a shell script (SH) file and implement some kind of toggling logic there, which changes to the next profile each time the script is executed or so. Furthermore, by creating a desktop file (plus your icon file), you can create a launcher icon that is calling your script and toggling the profile.

The following is a simplified example that just sets the colour profile to Muted. It's not doing any toggling and calls gconftool directly instead of calling some smarter script file. Also it uses the system icon of Settings application instead of an own icon file.

The file, let's say named color-profile.desktop, should be created to directory /usr/share/applications/ as a root user.

Code:
[Desktop Entry]
Name=Color Profile
Icon=icon-l-settings
Exec=gconftool-2 --set --type=string /system/osso/dsm/display/color_profile Muted
Type=Application
So now you can implement your idea with some smarter logic!
 

The Following 2 Users Say Thank You to Kallela For This Useful Post: