Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the awesome wm and awsetbg to draw the background. Suddenly, for a mysterious reason, it doesn't work (awsetbg /some/file.jpg), and when I try to get it to use a random directory (awsetbg -r /path/to/pics/dir) it says "invalid random wallpaper directory." Why is that, and how can I fix it? The directory doesn't contain anything but image files.

Update: I tried both awsetbg -r ~/Pictures and awsetbg -r /usr/share/backgrounds, but neither work.

share|improve this question
up vote 2 down vote accepted

If you use -r without a wallpaper setter installed awsetbg will set the directory to "#535d6c" which is invalid, install any wallpaper setter to fix it.

sudo apt-get install feh

Instead of feh you can try chbg, xsri, display, Esetroot, wmsetbg, xsetbg, xli, qiv, xv, hsetroot, habak, fvwm-root or icewmbg.

share|improve this answer

Use -R not -r

Worked for me.

share|improve this answer

Your Answer


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.