Feh is a lightweight and powerful image viewer that can also be used to manage the desktop wallpaper for standalone window managers lacking such features.
# pacman -S feh
feh is highly configurable. For a full list of options, run feh --help.
To quickly browse images in a specific directory, you can launch feh with the following arguments:
$ feh -g 640x480 -d -S filename /path/to/directory
- The -g flag forces the images to appear no larger than 640x480
- The -S filename flag sorts the images by filename
This is just one example and there are many more options available, should you desire more flexibility.
$ feh --bg-scale /path/to/image.file
Other scaling options include:
--bg-tile FILE --bg-center FILE --bg-seamless FILE
To restore the background on the next session, add the following to your startup file (e.g. ~/.xinitrc, ~/.config/openbox/autostart.sh, etc.):
eval `cat ~/.fehbg` &