Openbox Desktop with Rox-Filer Icon Bar.

Using FEH Wallpaper Setter Under Linux

by Lewis Loflin

(Above) Openbox Desktop with Rox-Filer Icon Bar and XFCE4 Panel.

FEH is a light weight image viewer and wallpaper setter for Linux. It has a command line interface and uses very little system resources. It's ideal for use in low RAM or older machines. Here we use it under Debian Wheezey - it works the same with Raspberry Pi or a regular Linux PC.

This is used for both Openbox, Fluxbox, and JWM in my various versions of Linux desktops. It won't work with XFCE or LXDE desktops.

To get FEH open a terminal and type the following if not already installed:

$ sudo apt-get install feh

Still in the terminal, open an image with feh. In Pibang backgrounds are in /usr/share/backgrounds/ or in my live distribution /usr/local/backgrounds/ or /usr/local/bgs/.

$ feh --bg-scale /usr/share/backgrounds/image.file

The image will open - right click on the image go to file then background and select how the image will be set. Close out the image and look at your desktop.

Other scaling options include:

--bg-tile FILE
--bg-center FILE
--bg-max FILE
--bg-fill FILE

To restore the background on the next session, add the following to your startup file (e.g. ~/.xinitrc, ~/.config/openbox/autostart, etc.):

$ sh ~/.fehbg &

To change the background image to soemthing else you could directly edit the file .fehbg in your home directory (this is a hidden file) which gets created after running the command feh --bg-scale /path/to/image.file mentioned above.

See the FEH Wiki.



Linux Videos

See How I got into Electronics