Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Dependencies

Dylan Araps edited this page Dec 10, 2016 · 43 revisions

This page lists the programs/dependencies Neofetch needs to run.

NOTE: Neofetch only requires BASH, the rest of the dependencies are entirely optional and only enable additional features and functionality.

Table of Contents

Required dependencies:

  • Bash 3.0+
    • Alpine Linux: You also need ncurses.

Image mode dependencies:

These dependencies are required for image mode to work.

  • Displaying images: w3m-img [1] or iTerm2 or Terminology [2]
  • Thumbnail creation: imagemagick
  • Window size: A terminal emulator that supports \033[14t [3] or xdotool or xwininfo + xprop or xwininfo + xdpyinfo

[1] w3m-img is sometimes bundled together with w3m.

[2] Image support is built into Terminology and iTerm2, and doesn't require w3m-img.

[3] See this wiki page for more information: Images in the terminal

Optional dependencies:

Wallpaper

Any OS running an X Server

  • feh, nitrogen or gsettings

Windows and macOS

  • No additional dependencies needed.

Screenshot

Any OS running an X Server

Neofetch will automatically use whatever tool is available.

  • scrot
  • maim
  • imagemagick
  • imlib2_grab
  • gnome-screenshot

macOS and Haiku

  • No additional dependencies needed.

Screenshot Uploading

  • curl

Song

NOTE: Spotify, Rhythmbox (state only), Amarok (qdbus), GNOME Music, Lollypop, and Clementine all require dbus or qdbusto work with Neofetch.

  • Google Play Music Desktop Player: gpmdp-remote
  • MPD: mpc
  • CMUS
  • MOC
  • Spotify
  • Rhythmbox
  • Banshee
  • Amarok
  • Deadbeef
  • GNOME Music
  • Lollypop
  • Clementine
  • Pragha

Desktop Environment and Window Manager

Any OS running an X Server

  • xprop

Resolution

Any OS running an X Server

  • xorg-xrandr or xorg-xdpyinfo [1]

macOS

  • screenresolution [2] [3]

[1] Xrandr is prefered over xdpyinfo as Xrandr supports multi monitor and refresh rate display in the output.

[2] screenresolution is faster than the built in Mac OS tools.

[3] screenresolution is installed for you when using homebrew.

Public IP

NOTE: dig is the fastest out of the three.

  • dig, curl or wget

GPU

Linux and GNU Hurd

  • lspci

BSD and Solaris

  • glxinfo
    • Not required on FreeBSD.

iOS Dependencies

These dependencies can all be installed through Cydia.<br > Note: The Cydia package installs these dependencies for you.

  • Bourne-Again SHell
  • Core Utilities
  • Core Utilities (/bin)
  • Darwin Tools
  • system-cmds
  • Gawk
  • grep

Android Dependencies

  • bash
  • busybox

Note: I recommend installing termux from the Play Store or F-Droid. Termux provides you with a fully working Linux environment, doesn't require root acess and includes all dependencies.

Note: Neofetch is in Termux's official repos.