LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01:07 PM   #1
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 187

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, 03:32 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

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


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 13 08-28-2014 02:10 PM
How to change background color of helpwindow m.harshavardhan Linux - Software 0 10-04-2005 02:05 AM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 04:17 AM
How can i change the background color of kghostview? TheoZhang Linux - Software 0 09-03-2003 06:09 AM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 09:32 AM


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

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