LinuxAlternative

Linux · System Tools

feh

feh is a lightweight, command-line image viewer for Linux, often used to set wallpapers or browse images quickly.

Open sourceFree
Be the first to rate
License
MIT
Latest version
3.13.1

What is feh?

feh is a fast, minimal image viewer for X11 that runs from the terminal. Originally released in the early 2000s, it's mature, stable, and widely used in tiling window manager setups. It's actively maintained and favored for its speed and scripting capabilities.

It's best suited for users comfortable with the command line—especially those using minimal desktop environments or window managers like i3 or dwm. Not designed for casual browsing with mouse-heavy interaction, it excels in automation and low-resource environments.

Compared to Windows Spotlight, feh lacks slideshow polish and background service integration. But it’s faster and more predictable. Where Windows tools hide complexity, feh exposes control—ideal for users who prefer precision over hand-holding.

Best for: Users who want fast, scriptable image viewing and wallpaper management in minimal Linux environments.

Key features of feh

  • Set desktop wallpaper from command line
  • Supports PNG, JPEG, BMP, and other common formats
  • Image slideshow and randomization options
  • Thumbnail scrolling with mouse navigation
  • Basic image manipulation (zoom, pan, next/prev)
  • Lightweight, no desktop environment dependencies
  • Customizable keybindings and scripting support

Pros

  • Extremely fast and low on memory
  • Scriptable for automated wallpaper rotation
  • Stable and reliable across distributions
  • Integrates well with minimal window managers
  • Highly configurable via command line or config file

Cons

  • No native GUI—requires terminal use
  • Steeper learning curve for beginners
  • Limited image editing or metadata display
  • Mouse controls less intuitive than Windows tools

Windows programs feh replaces

How to install feh on Linux

Ubuntu / Mintsudo apt install feh
Debiansudo apt install feh
Fedorasudo dnf install feh
Arch / Manjarosudo pacman -S feh
openSUSEsudo zypper install feh

Tips for Windows users

Instead of relying on background services like Windows Spotlight, feh requires manual commands or scripts. Use 'feh --bg-fill <image>' to set a wallpaper. Supported formats include JPG, PNG, and BMP. Navigation is keyboard-driven by default; 'q' quits, arrow keys move between images. To auto-start wallpapers, add feh to your .xinitrc or desktop autostart.

feh: frequently asked questions

How do I set a wallpaper with feh?

Run 'feh --bg-fill /path/to/image'. This sets the background and scales the image. Add it to your startup script to persist across sessions.

Does feh support slideshow mode?

Yes. Use 'feh -z -D 5' to display a random slideshow with 5-second intervals. The -z flag enables random order.

Can I use feh with a GUI file manager?

Yes, but indirectly. Right-click 'Open With' can call feh, though it still opens in a terminal-less window. Best used from the command line or scripts.

Is feh safe to use on a daily basis?

Yes. It's stable, widely packaged, and used in production environments. No known security issues when used as intended.

Updated