Linux - GeneralThis Linux 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Does anyone know if there's a command which will change the background image? I ask because I'm fetching an image from a webpage and would then like to apply it as my wallpaper.
wmsetbg works with XPM, PNG, jpeg, Tiff and PPM graphics. You will need to set this command in your login script if it is to work every time you log out and back in.
If you want a single command that will set your background permanently, then this depends on your window manager and/or desktop environment.
(works with every image format that image magick supports). For KDE and gnome this might not work. KDE:
dcop kdesktop KBackgroundIface setWallpaper /path/to/pic.jpg N
N can be any number from 1-6 resulting in centered, tiled, center tiled, scaled centered (keep aspect), scaled tiled (keep aspect), scaled and centered (auto fit)
Originally posted by verbose display -window root pic.jpg doesn't work for Gnome
That's what I thought. Isn't there an option in nautilus you can use to not have it manage the background image? Else there should be a command line interfdace similar to the kde one from above. I think gconftool or something it's called
edit:
Quote:
*The command you've mentioned applies an image to a window, which isn't what I want. I want to make the image my desktop background.
Yeah, it applies it to the _root_ window. Which is what you want. The problem here is that nautilus draws over that.
Hmm, unfortunately this command doesn't seem to be working either.
*gconftool-2 --get filedir returns different values depending on the image I select using the command you've given me, but it is apparently not actually making the image the background.
Nevermind, it works just fine. I wasn't using /desktop/gnome/background/picture_filename but was instead specifying my own path.
Well, probably the easiest way may be to have whatever program your using to fetch the background image to rename it to the current background image name... You will have to refresh your DT though...
Well, I use KDE and if I right click on the DT I can refresh... Not sure what the command line argument would be for it... Someone must know, however....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.