Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have just switched from Fluxbox to giving xmonad a go, and I am definitely 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 I installed xmonad through the package manager, and then ran xmonad from the list of environments available on the login screen.

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

share|improve this question
add comment

3 Answers

up vote 21 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)

share|improve this answer
4  
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 May 30 '12 at 21:12
    
Ubuntu 12.04, didn't fill if the image aspect ratio wasn't the same as my monitor's. –  cmc Feb 5 '13 at 13:22
1  
@E-rich, put it in your .xinitrc file, usually before a line alike exec /bin/xmonad. –  JMCF125 Jan 6 at 19:27
add comment

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

share|improve this answer
    
Yup, thanks. [15 chars] –  Yacoby Nov 5 '09 at 0:46
4  
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 –  Alvin Row Nov 5 '09 at 0:52
    
For image formats other than XPM, xloadimage -root $path –  grawity Nov 5 '09 at 15:47
add comment

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).

share|improve this answer
1  
Worked perfectly! Ubuntu 12.04. –  cmc Feb 5 '13 at 13:22
2  
perfect! it even works with dual monitors! –  John C Aug 8 '13 at 15:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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