Difference between revisions of "Feh"

From ArchWiki
Jump to: navigation, search
m (Desktop Wallpaper)
Line 1: Line 1:
[[Category: Graphics and DTP (English)]]
= Introduction =
= Introduction =

Revision as of 15:25, 7 November 2007


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.

Image Browser

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.

Desktop Wallpaper

feh can be used to manage the desktop wallpaper for window managers that lack desktop features, such as Openbox and Fluxbox. The following command is an example of how to set the initial background:

$ 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` &