Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-11-2005, 12:07 PM   #1
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
Change Background Color/Image

The desktop is GNOME.

I need to write a script that would change the current background color/image to a red background color. When the script is finished, I'd like it to replace the background with what was there before (color or image).

What would be the proper program that I could call from a script that would report the background information so that I could save it to a temporary place in order to restore it?

Thanks for any help.

-- Tony
Old 03-11-2005, 02:32 PM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
I'm not positive, as I use WindowMaker and haven't ever tried anything like this, but it looks like "gconftool-2" might be a helpful command for you.

The man page (online) is here:

gconftool-2 appears to store its keys in a heirarchical manner, reminiscent of the linux file system structure.
This command will list all the keys you can get/set under /desktop/gnome:

$ gconftool-2 --recursive-list /desktop/gnome

Hope that helps!


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 change background and fonts color in xterm? macondo Debian 17 04-30-2016 04:46 AM
How to change background color of helpwindow m.harshavardhan Linux - Software 0 10-04-2005 01:05 AM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 03:17 AM
How can i change the background color of kghostview? TheoZhang Linux - Software 0 09-03-2003 05:09 AM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 08:32 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 AM.

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