I have just switched from Fluxbox to giving xmonad a go, and I am defiantly liking it. However, the one thing I haven't managed to do is to change my desktop background.

I am using Ubuntu 8 (uh, can't remember the value after the point), and have installed xmonad through the package manger, and then run xmonad from the list of environments availble on the login screen.

I have tried setting it using the gconftool as suggested on the Haskell wiki, but it doesn't seem to have any effect.

link|improve this question

75% accept rate
feedback

3 Answers

up vote 9 down vote accepted

Regarding prior comment from grawity, the correct syntax is actually

xloadimage -onroot -fullscreen <path.to.image>

The advantages over xloadiamge on xpmroot are:

  • allows png images
  • on Ubuntu, has its own package, rather than bein contained in the larger fvwm package

(sorry if this would be better as a comment on previous answer: I can't add comments)

link|improve this answer
I'm new to Haskell and Xmonad, and not exactly sure how to use that command in my Xmonad config. How am I supposed to use xloadimage? – E-rich 2 days ago
feedback

Does this command work: xpmroot ~/background.xpm &? Where background.xpm is the filename of the image you want to be your background.

link|improve this answer
Yup, thanks. [15 chars] – Yacoby Nov 5 '09 at 0:46
2  
Btw, I am not sure if that stays as your background after logging out. You might need to add that command to your ~/.xsessions or ~/.xinitrc – DoR Nov 5 '09 at 0:52
For image formats other than XPM, xloadimage -root $path – grawity Nov 5 '09 at 15:47
feedback

I had some trouble with xloadimage (didn't work at all) and xpmroot (only accepts xpms and gimp wrote a strange one that it barfed on), but feh --bg-fill worked wonderfully (thanks to some guys on the arch forum).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.