FEH menu

Raspberry Pi Using FEH Background Image Setter

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.

~ $ sudo apt-get install feh

Still in the terminal, open an image with feh.

~ $ feh /usr/share/images/desktop-base

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
# uncomment what you want if not selected from .xinitrc
#wall paper
sh ~/.fehbg & 

#bottom tray/bar choose only 1
#exec tint2 &
#exec xfcer4-panel &

# clipboard
#exec parcellite &

# system monitor
#exec conky & 

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.

See the FEH Wiki.

YouTube Videos:
MCP4725 12-Bit DAC Interface to Raspberry Pi
ADS1115 4-Channel ADC Uses I2C with Raspberry Pi
Interface I2C LCD to Raspberry Pi in C
Pulse-Width-Modulation with Raspberry Pi
Using Geany Text editor C Programming
Raspberry Pi Blink Demo
MAX6675 Raspberry Pi Demo

Raspberry Pi, Arduino, and Learning Linux
Raspberry PI Arduino Advanced Interface
Tkinter with Raspberry Pi and PCF8591 AD-DA Sensor

Linux Videos

Live Linux Distro for Using Printer Port with Electronics
Using the powerful Rox-Filer system in Linux
Use FEH under Linux for a Wallpaper Setter
How to create Symbolic links in Linux