FEH menu

Raspberry Pi uses FEH Desktop Backgrounds

by Lewis Loflin

FEH is a basic low-resource picture viewer and wallpaper program for Linux-based systems. This is for both Openbox, Fluxbox, and JWM.

Raspberry doesn't come with FEH so download/install feh and while we are at it scrot for screen shots.

~ $ sudo apt-get install feh scrot

Still in the terminal, open an image with feh. Must include full path name to wallpaper directory.

~ $ feh /usr/share/images/whatever_image.jpg

Use left/right arrows to select image, right-click on the image then file then background then select set centered, etc. This generates a file .fehbg in your home directory that will be used when logging in to set the wallpaper.

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, or ~/.config/openbox/autostart, etc.):

$ sh ~/.fehbg &

For openbox this must be placed in the autostart file.

leafpad ~/.config/openbox/autostart

Add the following:


# start up for openbox
# don't use with nitrogen 
# wall paper
sh ~/.fehbg & 

Save and close and restart. These same selections don't need to be called from .xinitrc just for openbox-session.

To change the background image, edit the file ~/.fehbg which gets created after running the command feh --bg-scale /path/to/image.file mentioned above.

The image will be reduced to a smaller size the up/down arrows will increase/decrease the image within the fixed window.

See the FEH Wiki.

Also see Raspberry Pi Screen Shots with Scrot, FEH

YouTube video Raspberry Pi, Arduino, and Learning Linux.