LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-11-2005, 12:07 PM   #1
tonyfreeman
Member
 
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
rose_bud4201
Member
 
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: http://newton.waglo.com/cgi-bin/dwww...onftool-2.1.gz

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!
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration