Nightfetch is built on Linux-specific directories so it may not work on other systems. FreeBSD and OpenBSD are technically in the distro list, but are untested.
Nightfetch supports these sources:
os-/etc/os-releasecpu-/proc/cpuinfomem-/proc/meminfouptime-/proc/uptimekernel-/proc/sys/kernel/arch,/proc/sys/kernel/hostname,/proc/sys/kernel/osrelease,/proc/sys/kernel/ostypeboard-/sys/devices/virtual/dmi/id/board_name,/sys/devices/virtual/dmi/id/board_vendor,/sys/devices/virtual/dmi/id/board_versionhost:name-/etc/hostnamedistro- your distro’s logo and package managerenv- envvars
By default, the config file is located in $XDG_CONFIG_HOME/nightfetch/config or $HOME/.config/nightfetch/config
To include a variable, use {source:key} in your config.
Key naming is as follows:
os,cpu,mem- as in source, all lowercasecpu- onlyvendor,model,name,threads,cores,mhz_$core,ghz_$coremem- only fields containingTotalorFreeandswapused,memusedin kb, mb, gb(suffix with_kb,_mb,_gbrespectively)
uptime-uptime_hours,uptime_minsanduptime_secsfor hours, minutes and secondskernel-arch,hostname,osrelease,ostype, all corresponding to the file of the same nameboard-name,vendor,version, all corresponding to board_$keyhost- onlyname- contents of/etc/hostnamedistro-pm_name- the name of distro’s package manager,pm_count- number of packages installed,color- used in{cauto},logo_tiny- distro’s logo as in nerd fonts[fn:1],logo_$i- distro’s logo line by lineenv- environment variable name verbatim
Nightfetch supports these styles:
{ }- clear all prior styling(including colors){b}- bold{d}- dim{i}- italic{u}- underline
and these colors:
{cauto}- primary color of your distro{c0}- black{c1}- red{c2}- green{c3}- yellow{c4}- blue{c5}- magenta{c6}- cyan{c7}- white
All lines that start with # are ignored
-c/--config /path/to/config- change path to config-l/--config logo- changedistro:logo_tiny,distro:logo_$ianddistro:colorto that oflogo-h/--help- show help
[fn:1: opensuse-tumbleweed, opensuse-leap and pureos don’t have nf icons, so they’re substituted by similar-looking characters]