Compare commits

...

79 Commits
3.3.0 ... img2

Author SHA1 Message Date
dylan araps
bd0f396305 general: cleanup 2017-12-14 10:32:18 +11:00
dylan araps
3c03c47f50 config: Update comment 2017-12-14 10:25:47 +11:00
dylan araps
b628ec0f4d image: Simplify crop 2017-12-14 10:22:23 +11:00
dylan araps
6c238a03b2 image: Simplify image handling. 2017-12-14 10:06:16 +11:00
dylan araps
8762403de9 wm_theme: Fix sawfish theme. 2017-12-13 14:43:21 +11:00
dylan araps
a2290b7398 cpu_temp: $temp is an environment variable on Windows. 2017-12-13 11:48:49 +11:00
dylan araps
9f263fe184 general: Fixed extra trailing prompt newline 2017-12-13 11:42:10 +11:00
dylan araps
c5c4f901ba general: Add config version to verbose output 2017-12-13 11:31:12 +11:00
dylan araps
9b5d75907b general: Add neofetch version to verbose output. 2017-12-13 11:30:17 +11:00
dylan araps
ed05c6460b general: Add command used to run neofetch to verbose output. 2017-12-13 11:19:53 +11:00
dylan araps
7fc4f84217 wm_theme: Fixed sawfish detection 2017-12-13 11:08:10 +11:00
dylan araps
c43ffb028e image: Make (--size none) keep original image aspect ratio. 2017-12-13 10:29:14 +11:00
dylan araps
8540a2f1e3 cpu_temp: Detect CPU temperature file. 2017-12-13 08:56:33 +11:00
dylan araps
db21981373 de: Fix GNOME bug 2017-12-13 08:45:47 +11:00
dylan araps
ca49b178fe de: Add GNOME version 2017-12-13 08:43:05 +11:00
dylan araps
1e8f12dd4a gpu_driver: Add version to NVIDIA output 2017-12-13 08:38:11 +11:00
Muhammad Herdiansyah
39cda4f29f Misc: Remove comment 2017-12-03 19:54:50 +07:00
Muhammad Herdiansyah
ed99973989 docs: CHANGELOG 2017-12-03 19:54:02 +07:00
Muhammad Herdiansyah
fe9933f544 Image mode (MacOS): Fixed garbage letter appeared in iTerm2 2017-12-03 19:52:03 +07:00
Herdiansyah
045577653c Merge pull request #872 from StarryTony/patch-1
fix in mac can not make_thumbnail
2017-12-03 19:50:10 +07:00
Muhammad Herdiansyah
c3d47ece7d docs: CHANGELOG 2017-11-26 19:00:29 +07:00
Herdiansyah
23340e29c3 Merge pull request #864 from MitchWeaver/master
add Sabotage linux package support
2017-11-26 18:58:42 +07:00
Herdiansyah
fe057a157b Merge pull request #868 from dawidd6/lede
ascii: add LEDE
2017-11-26 18:56:05 +07:00
Herdiansyah
f8c2bc2573 Merge pull request #869 from dawidd6/trueos
distro: fix trueos detection
2017-11-26 18:55:21 +07:00
Herdiansyah
bb4bc945be Merge pull request #871 from dawidd6/busybox
disk: change Haiku's df detection
2017-11-26 18:55:11 +07:00
StarryTony
acdd75220e fix in mac can not make_thumbnail
# fix in mac high Sierra cannot replace '/' with '_', optionally can use ${image//\//_}
2017-11-23 01:55:08 +00:00
Dawid Dziurla
a1e6843884 disk: change Haiku's df detection
'blocks' keyword is also present in busybox' df.
Busybox' df also has -P and -h flags, so it can be detected as normal df.
'Tracker' keyword seems to be exclusive to Haiku's df.
2017-11-22 22:08:11 +01:00
Dawid Dziurla
63df9687db distro: fix trueos detection 2017-11-19 16:49:49 +01:00
Dawid Dziurla
744dd46330 ascii: add LEDE 2017-11-19 12:06:11 +01:00
Mitch Weaver
dd8ee366b1 add neofetch 2017-11-18 23:53:36 +01:00
dylan araps
4fd2287582 Merge branch 'master' of https://github.com/dylanaraps/neofetch 2017-11-08 07:20:47 +11:00
dylan araps
d21f9e928d model: Fix garbage 2017-11-08 07:20:25 +11:00
Herdiansyah
8fa9fd2e71 Merge pull request #857 from m1st0/master
Update Kubuntu Logo
2017-11-07 19:46:56 +07:00
Herdiansyah
0f2ef38a5b Merge pull request #850 from ARCHLabs/master
Update archlabs distro ascii art
2017-11-07 19:46:28 +07:00
Dylan Araps
06fdb40878 Merge pull request #856 from jliles/master
Added Pop!_OS distribution
2017-11-05 09:05:37 +11:00
Maulik Mistry
da983b3adf Merge branch 'master' of https://github.com/dylanaraps/neofetch 2017-11-03 02:26:36 -07:00
Maulik Mistry
498991b106 Added color updates for Kubuntu logo. 2017-11-03 02:26:31 -07:00
Jesse Liles
98e2a0db99 Added Pop\!_OS distribution 2017-11-02 16:13:55 -04:00
natemaia
857cbb21b4 Update archlabs distro ascii art 2017-10-26 02:01:55 -07:00
Andrew Titmuss
402ac0bc00 model: fix SC2102 on iPad 2017-10-18 16:17:52 +11:00
Andrew Titmuss
87140464fc docs: CHANGELOG 2017-10-18 14:58:37 +11:00
Andrew Titmuss
434a4d4fb7 model: add new iOS devices 2017-10-18 14:57:05 +11:00
Andrew Titmuss
4f3f0f73c0 distro: fix whitespace for High Sierra 2017-10-18 14:37:00 +11:00
Andrew Titmuss
322acffb95 docs: CHANGELOG 2017-10-18 11:28:41 +11:00
Andrew Titmuss
1ab898e944 resolution: Fix errors on non-retina screens [macOS]
Added a check to see if the plist file we use for checking the scale factor exists
2017-10-18 11:25:27 +11:00
Andrew Titmuss
bb9389797f Merge pull request #846 from dylanaraps/gpu_driver_mac
gpu_driver: Add macOS (Nvidia) support
2017-10-18 08:14:03 +11:00
Andrew Titmuss
f7dc4441fc gpu_driver: Add macOS (Nvidia) support 2017-10-17 23:13:36 +11:00
Andrew Titmuss
468c49efe7 docs: CHANGELOG 2017-10-17 22:51:44 +11:00
Andrew Titmuss
3217b921e5 WM: Fix chunkwm being detected as Kwm on macOS 2017-10-17 22:47:12 +11:00
dylan araps
03d07f2c62 Merge branch 'master' of https://github.com/dylanaraps/neofetch 2017-10-16 07:42:46 +11:00
dylan araps
a26fd76ca6 OS: Added support for Lunar Linux. 2017-10-16 07:42:37 +11:00
Muhammad Herdiansyah
51ff3d1c88 docs: CHANGELOG 2017-10-15 07:26:27 +07:00
Muhammad Herdiansyah
f6c362f5a1 Install Date: Use a separate case for MacOS ls 2017-10-15 07:21:40 +07:00
Andrew Titmuss
75148f63ee docs: CHANGELOG 2017-10-13 15:08:28 +11:00
Andrew Titmuss
3941971e3e Merge pull request #840 from dylanaraps/install-date-mac
Fix Install Date for macOS
2017-10-13 14:56:08 +11:00
Andrew Titmuss
123d1652ff fix line length to be under 100 chars in macOS install date 2017-10-13 14:44:22 +11:00
Andrew Titmuss
3cac29c804 Change -u to -U in macOS install date 2017-10-13 14:32:58 +11:00
Andrew Titmuss
952f2e5b22 fix Install Date for macOS 2017-10-13 14:24:56 +11:00
dylan araps
b57cdee02a image: Fix bug with getting wallpaper from feh. 2017-10-11 08:49:07 +11:00
dylan araps
b763c31ad7 image: Fix bug with getting wallpaper from feh. 2017-10-10 08:44:09 +11:00
dylan araps
f9d881e905 image: Fix bug with getting wallpaper from feh. 2017-10-10 08:29:55 +11:00
Muhammad Herdiansyah
fd04aa14ae docs: CHANGELOG 2017-09-26 08:49:21 +07:00
Herdiansyah
87a28b139a Merge pull request #825 from yslgirl/master
add macOS High Sierra support
2017-09-26 08:46:17 +07:00
Dylan Araps
133e7bdc0c Merge pull request #834 from tokamach/master
tiny fix for WM always being detected as Kwm on macOS
2017-09-26 08:41:52 +10:00
Tom Hutchings
5caac4a91a tiny fix for WM always being detected as Kwm on macOS 2017-09-25 18:27:35 +01:00
Dylan Araps
fd535da792 Merge pull request #832 from chrisweeksnz/coreos-addition
Coreos addition
2017-09-22 09:16:52 +10:00
Chris Weeks
11aa52e088 Remove single space on each line of ascii art 2017-09-22 10:28:56 +12:00
Chris Weeks
cbece346f8 Update neofetch 2017-09-21 18:07:27 +12:00
Chris Weeks
f03ecddc13 Create coreos logo 2017-09-21 17:56:12 +12:00
Muhammad Herdiansyah
c1dac90399 Model: Remove more unneeded outputs 2017-09-18 14:29:35 +07:00
Dylan Araps
b3e90cc322 Merge pull request #828 from mstraube/kde
Font: Fix KDE font, #821
2017-09-18 07:42:36 +10:00
Dylan Araps
4e69a35fb0 Merge pull request #827 from mstraube/elisa
Song: Add support for Elisa
2017-09-17 08:41:22 +10:00
Michael Straube
eea725b8aa Song: Add support for Elisa 2017-09-16 21:17:22 +02:00
dylan araps
8fa1abd0c2 docs: CHANGELOG 2017-09-16 09:18:33 +10:00
dylan araps
15879c8df8 distro: Fix Gentoo detection error. 2017-09-15 08:16:51 +10:00
dylan araps
b633ce9a0c version: bump 2017-09-14 10:23:03 +10:00
dylan araps
8493805eda docs: New changelog 2017-09-14 10:22:30 +10:00
Michael Straube
8d8b2da890 Font: Fix KDE font, #821 2017-09-12 15:02:13 +02:00
chance
afd8e56d58 add macOS High Sierra support 2017-09-10 23:46:08 -06:00
10 changed files with 270 additions and 281 deletions

View File

@@ -1,122 +1,42 @@
## Contributors
- **[@konimex](https://github.com/konimex)**
- **[@mstraube](https://github.com/mstraube)**
- **[@dominiklohmann](https://github.com/dominiklohmann)**
- **[@ybden](https://github.com/ybden)**
- **[@lexruee](https://github.com/lexruee)**
- **[@AMDmi3](https://github.com/AMDmi3)**
- **[@deadda7a](https://github.com/deadda7a)**
- **[@winneon](https://github.com/winneon)**
- **[@DamnWidget](https://github.com/DamnWidget)**
- [**@yslgirl**](https://github.com/yslgirl)
- [**@iandrewt**](https://github.com/iandrewt)
- [**@chrisweeksnz**](https://github.com/chrisweeksnz)
- [**@dawidd6**](https://github.com/dawidd6)
- [**@MitchWeaver**](https://github.com/MitchWeaver)
- [**@StarryTony**](https://github.com/StarryTony)
## General
## OS
- Config file now has a `.conf` suffix.
- Neofetch now assumes target directories (config file and ASCII directory) at install time, this fixes problems with systems such as NixOS.
- `stdout` mode is now reimplemented.
- This mode prints the information in plain text.
- You can use it with `--stdout`.
- Example: https://gist.github.com/dylanaraps/151c205322cf3acae62661b76464a3f7
- Fixed prompt location if color blocks are disabled.
- Make makefile more portable. **[@AMDmi3](https://github.com/AMDmi3)**
## Operating System
- Added support for AryaLinux. **[@mstraube](https://github.com/mstraube)**
- Added support for Amazon Linux AMI.
- Added support for Artix Linux. **[@DamnWidget](https://github.com/DamnWidget)**
- Added support for Endless OS.
- Added support for Sabotage Linux.
- Added support for Siduction. **[@lexruee](https://github.com/lexruee)**
- Added support for Source Mage.
- Added support for Parsix GNU/Linux. **[@mstraube](https://github.com/mstraube)**
- Added support for Nurunner. **[@mstraube](https://github.com/mstraube)**
- Fixed Raspbian being detected as ChromeOS.
- Fixed detection bug with Gentoo.
- Fixed detection bug with TrueOS. [**@dawidd6**](https://github.com/dawidd6)
- Added support for macOS High Sierra. [**@yslgirl**](https://github.com/yslgirl)
- Added support for Container Linux by CoreOS. [**@chrisweeksnz**](https://github.com/chrisweeksnz)
- Added support for 2017 iOS devices [**@iandrewt**](https://github.com/iandrewt)
- Added support for LEDE. [**@dawidd6**](https://github.com/dawidd6)
## Images
- [w3m] Fixed w3m-img not found on NixOS.
- Added support for using all image types as input.
- Neofetch now supports `svg`, `tiff` etc.
## ASCII
- Added small Debian.
- Added small FreeBSD.
- Added small macOS.
- Added small NixOS.
- [MacOS/iTerm2] Fixed thumbnail not appearing (replaced by placeholder) [**@StarryTony**](https://github.com/StarryTony)
## Info
**GPU Driver**
- [Linux] Added a new info function (*off by default*) to display the GPU Driver currently in use.
- Add `info "GPU Driver" gpu_driver` to your config to use it.
**CPU**
- [Linux] Fixed inaccurate output on ARM SoC devices.
- [Linux] Fixed CPU speed not appearing on PowerPC systems.
- [NetBSD] Added support for CPU temperature. (NOTE: This only supports newer Intel processors)
- Fixed inaccurate speed output in systems with CPU speed less than 1 GHz.
- Deprecated `cpu_shorthand` in favor of `cpu_brand`.
**GPU**
- [Linux] Filter out duplicate entries.
**Model**
- Added support for QEMU/KVM.
- Renamed subtitle to `Host:`.
**Uptime**
- [AIX/IRIX] Fixed Neofetch crashing when calculating uptime.
**Terminal**
- [SSH] Fixed infinite loop if neofetch is run on non-interactive shells.
**Terminal Font**
- Added support for LXTerminal. **[@mstraube](https://github.com/mstraube)**
- Added support for GNUStep Terminal. **[@mstraube](https://github.com/mstraube)**
- Fixed Xfce4-terminal font output when system-wide font is used. **[@mstraube](https://github.com/mstraube)**
- Fixed MATE-Terminal issue. **[@mstraube](https://github.com/mstraube)**
- Fixed URxvt font detection failing if `.` is used. **[@winneon](https://github.com/winneon)**
**Theme**
- [Qt/KDE] Fixed inaccurate theme naming. **[@mstraube](https://github.com/mstraube)**
- [Qt/KDE] GTK theme is now shows as well.
**Window Manager**
- [macOS] Added support for `chunkwm`. **[@dominiklohmann](https://github.com/dominiklohmann)**
- Fix incorrect output when using WindowMaker. **[@mstraube](https://github.com/mstraube)**
- [macOS] Fixed chunkwm being detected as Kwm. [**@iandrewt**](https://github.com/iandrewt)
**Song**
**Install Date**
- Added support for Pogo. **[@mstraube](https://github.com/mstraube)**
- Fixed bug with players not being found.
- [macOS] Fixed Install Date. [**@iandrewt**](https://github.com/iandrewt)
**Battery**
**Package Manager**
- Added battery support for Thinkpads and other devices that use the `CMB` naming for batteries. **[@deadda7a](https://github.com/deadda7a)**
- Added detection for Sabotage Linux's `butch` [**@MitchWeaver**](https://github.com/MitchWeaver)
**Resolution**
## Images
- Fixed division by 0 error in XTerm.
## Screenshot
- Use `maim` over `scrot`. **[@ybden](https://github.com/ybden)**
- Fixed `scrot_cmd` arguments not being used. **[@winneon](https://github.com/winneon)**
- [macOS] Fixed errors on non-retina screens. [**@iandrewt**](https://github.com/iandrewt)

View File

@@ -1,18 +1,21 @@
${c1} sy
h--d
d---:
:----/N
:------/N
N/----:---+
N/---+/ :--:o
N/--:/ ::::s
+--- ::::s
N+---+ ::::s
N+----o +:o s::::s
N/----:: s:::s h:::::s
N/----:::y::::+ o::::::o
N/---::::::::::s d::::::::+N
/--::::::::::::dd::::::::::+N
:-:::/+syhd NNN N dhys+/:::/
d::+ydN /s+/d
arc y\\.
${c1} 'c'
'kKk,
.dKKKx.
.oKXKXKd.
.l0XXXXKKo.
c0KXXXXKX0l.
:0XKKOxxOKX0l.
:OXKOc. .c0XX0l.
:OK0o. ${c4}...${c1}'dKKX0l.
:OX0c ${c4};xOx'${c1}'dKXX0l.
:0KKo.${c4}.o0XXKd'.${c1}lKXX0l.
c0XKd.${c4}.oKXXXXKd..${c1}oKKX0l.
.c0XKk;${c4}.l0K0OO0XKd..${c1}oKXXKo.
.l0XXXk:${c4},dKx,.'l0XKo.${c1}.kXXXKo.
.o0XXXX0d,${c4}:x; .oKKx'${c1}.dXKXXKd.
.oKXXXXKK0c.${c4};. :00c'${c1}cOXXXXXKd.
.dKXXXXXXXXk,${c4}. cKx'${c1}'xKXXXXXXKx'
'xKXXXXK0kdl:. ${c4}.ok; ${c1}.cdk0KKXXXKx'
'xKK0koc,.. ${c4}'c, ${c1} ..,cok0KKk,
,xko:'. ${c4}.. ${c1} .':okx;
.,'. .',.

20
ascii/distro/coreos Normal file
View File

@@ -0,0 +1,20 @@
${c1} .....
.';:cccccccc:;'.
':ccccclc${c3}lllllllll${c1}cc:.
.;cccccccc${c3}lllllllllllllll${c1}c,
;clllccccc${c3}llllllllllllllllll${c1}c,
.cllclccccc${c3}lllll${c2}lll${c3}llllllllllll${c1}c:
ccclclcccc${c3}cllll${c2}kWMMNKk${c3}llllllllll${c1}c:
:ccclclcccc${c3}llll${c2}oWMMMMMMWO${c3}lllllllll${c1}c,
.ccllllllccc${c3}clll${c2}OMMMMMMMMM0${c3}lllllllll${c1}c
.lllllclcccc${c3}llll${c2}KMMMMMMMMMMo${c3}llllllll${c1}c.
.lllllllcccc${c3}clll${c2}KMMMMMMMMN0${c3}lllllllll${c1}c.
.cclllllcccc${c3}lllld${c2}xkkxxdo${c3}llllllllllc${c1}lc
:cccllllllcccc${c3}lllccllllcclccc${c1}cccccc;
.ccclllllllcccccccc${c3}lll${c1}ccccclccccccc
.cllllllllllclcccclccclccllllcllc
:cllllllllccclcllllllllllllcc;
.cccccccccccccclcccccccccc:.
.;cccclccccccllllllccc,.
.';ccccclllccc:;..
.....

View File

@@ -1,20 +1,20 @@
${c1} `.:/ossyyyysso/:.
.:oyyyyyyyyyyyyyyyyyyo:`
-oyyyyyyyo-``/yyyyyyysyyyyo-
-syyyyyyyyyy` +yyyy/` `/yyyys-
+yyys/./syyyy: ..-` /yyyyyy+
`oyyyy: `:syys+oooo+:. .yyyyyyyyo`
+yyyyyy/ `/yyyyyyyyyyys/` /sssssyyy+
-yyyyyyyy- -syyyyyyyyyyyyyys- syyy-
oyyyyso+: .yyyyyyyyyyyyyyyyyy. `.+yyyo
yyys /yyyyyyyyyyyyyyyyyysosyyyyyyyy
yyys.` /yyyyyyyyyyyyyyyyyyyyyyyyyyyyy
oyyyyyso: .yyyyyyyyyyyyyyyyyy.`.-:/syyyo
-yyyyyyyy. -syyyyyyyyyyyyyys- syyy-
+yyyyyy: `syyyyyyyyyyys/` /o+++oyyy+
`oyyyy. -syyy++oooo+/. oyyyyyyyyo
+yyys/-oyyyys` `..` -yyyyyyy+
-syyyyyyyyy: .syyy/` `syyyys-
-oyyyyyyy:.`-yyyyyys+syyyyo-
-oyyyyyyyo${c2}dMMy${c1}yyyyyyysyyyyo-
-syyyyyyyyyy${c2}dMMy${c1}oyyyy${c2}dmMMy${c1}yyyys-
oyyys${c2}dMy${c1}syyyy${c2}dMMMMMMMMMMMMMy${c1}yyyyyyo
`oyyyy${c2}dMMMMy${c1}syysoooooo${c2}dMMMMy${c1}yyyyyyyyo`
oyyyyyy${c2}dMMMMy${c1}yyyyyyyyyyys${c2}dMMy${c1}sssssyyyo
-yyyyyyyy${c2}dMy${c1}syyyyyyyyyyyyyys${c2}dMMMMMy${c1}syyy-
oyyyysoo${c2}dMy${c1}yyyyyyyyyyyyyyyyyy${c2}dMMMMy${c1}syyyo
yyys${c2}dMMMMMy${c1}yyyyyyyyyyyyyyyyyysosyyyyyyyy
yyys${c2}dMMMMMy${c1}yyyyyyyyyyyyyyyyyyyyyyyyyyyyy
oyyyyysos${c2}dy${c1}yyyyyyyyyyyyyyyyyy${c2}dMMMMy${c1}syyyo
-yyyyyyyy${c2}dMy${c1}syyyyyyyyyyyyyys${c2}dMMMMMy${c1}syyy-
oyyyyyy${c2}dMMMy${c1}syyyyyyyyyyys${c2}dMMy${c1}oyyyoyyyo
`oyyyy${c2}dMMMy${c1}syyyoooooo${c2}dMMMMy${c1}oyyyyyyyyo
oyyysyyoyyyys${c2}dMMMMMMMMMMMy${c1}yyyyyyyo
-syyyyyyyyy${c2}dMMMy${c1}syyy${c2}dMMMy${c1}syyyys-
-oyyyyyyy${c2}dMMy${c1}yyyyyysosyyyyo-
./oyyyyyyyyyyyyyyyyyyo/.
`.:/oosyyyysso/:.`

9
ascii/distro/lede Normal file
View File

@@ -0,0 +1,9 @@
${c1} _________
/ /\
/ LE / \
/ DE / \
/________/ LE \
\ \ DE /
\ LE \ /
\ DE \ /
\________\/

13
ascii/distro/lunar Normal file
View File

@@ -0,0 +1,13 @@
${c1}`-. `-.
-ohys/-` `:+shy/`
-omNNdyo/` :+shmNNy/`
${c3} -
/mMmo
hMMMN`
.NMMs
${c1} -:+oooo+//: ${c3}/MN${c1}. -///oooo+/-`
/:.` ${c3}/${c1} `.:/`
${c3} __
| | _ _ ___ ___ ___
| |__| | | | .'| _|
|_____|___|_|_|__,|_|

21
ascii/distro/pop_os Normal file
View File

@@ -0,0 +1,21 @@
${c1} /////////////
/////////////////////
///////${c2}*767${c1}////////////////
//////${c2}7676767676*${c1}//////////////
/////${c2}76767${c1}//${c2}7676767${c1}//////////////
/////${c2}767676${c1}///${c2}*76767${c1}///////////////
///////${c2}767676${c1}///${c2}76767${c1}.///${c2}7676*${c1}///////
/////////${c2}767676${c1}//${c2}76767${c1}///${c2}767676${c1}////////
//////////${c2}76767676767${c1}////${c2}76767${c1}/////////
///////////${c2}76767676${c1}//////${c2}7676${c1}//////////
////////////,${c2}7676${c1},///////${c2}767${c1}///////////
/////////////*${c2}7676${c1}///////${c2}76${c1}////////////
///////////////${c2}7676${c1}////////////////////
///////////////${c2}7676${c1}///${c2}767${c1}////////////
//////////////////////${c2}'${c1}////////////
//////${c2}.7676767676767676767,${c1}//////
/////${c2}767676767676767676767${c1}/////
///////////////////////////
/////////////////////
/////////////

View File

@@ -26,7 +26,7 @@ print_info() {
info "GPU" gpu
info "Memory" memory
# info "GPU Driver" gpu_driver # Linux only
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
@@ -617,18 +617,8 @@ image_loop="off"
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="normal"
# Crop offset
# Note: Only affects 'normal' crop mode.
# Note: Only affects 'square' image size.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
@@ -637,20 +627,21 @@ crop_mode="normal"
crop_offset="center"
# Image size
# The image is half the terminal width by default.
# NOTE: 'square' is the OLD behavior.
# NOTE: 'auto' keeps image aspect ratio and size where possible.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Values: 'auto', 'square'
# Flags: --image_size
# --size
image_size="auto"
# Ggap between image and text
# Gap between image and text
#
# Default: '3'
# Default: '4'
# Values: 'num', '-num'
# Flag: --gap
gap=3
gap=4
# Image offsets
# Only works with the w3m backend.
@@ -729,4 +720,4 @@ stdout="off"
#
# NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility.
config_version="3.3.0"
config_version="3.3.1-git"

229
neofetch
View File

@@ -9,7 +9,7 @@
# https://github.com/dylanaraps/
# Neofetch version.
version="3.3.0"
version="3.3.1-git"
bash_version="${BASH_VERSION/.*}"
sys_locale="${LANG:-C}"
@@ -153,13 +153,14 @@ get_distro() {
# Workarounds for FreeBSD based distros.
[[ -f "/etc/pcbsd-lang" ]] && distro="PCBSD"
[[ -f "/etc/rc.conf.trueos" ]] && distro="TrueOS"
[[ -f "/etc/trueos-lang" ]] && distro="TrueOS"
# /etc/pacbsd-release is an empty file
[[ -f "/etc/pacbsd-release" ]] && distro="PacBSD"
fi
fi
distro="$(trim_quotes "$distro")"
distro="${distro/'NAME='}"
;;
"Mac OS X")
@@ -176,6 +177,7 @@ get_distro() {
"10.10"*) codename="OS X Yosemite" ;;
"10.11"*) codename="OS X El Capitan" ;;
"10.12"*) codename="macOS Sierra" ;;
"10.13"*) codename="macOS High Sierra" ;;
*) codename="macOS" ;;
esac
distro="$codename $osx_version $osx_build"
@@ -186,7 +188,7 @@ get_distro() {
case "$osx_version" in
"10."[4-7]*) distro="${distro/${codename}/Mac OS X}" ;;
"10."[8-9]* | "10.1"[0-1]*) distro="${distro/${codename}/OS X}" ;;
"10.12"*) distro="${distro/${codename}/macOS}" ;;
"10.1"[2-3]*) distro="${distro/${codename}/macOS}" ;;
esac
distro="${distro/ ${osx_build}}"
;;
@@ -280,10 +282,13 @@ get_model() {
"iPad2,"[1-4]) model="iPad 2" ;;
"iPad3,"[1-3]) model="iPad 3" ;;
"iPad3,"[4-6]) model="iPad 4" ;;
"iPad6,11" | "iPad 6,12") model="iPad 5" ;;
"iPad4,"[1-3]) model="iPad Air" ;;
"iPad5,"[3-4]) model="iPad Air 2" ;;
"iPad6,"[7-8]) model="iPad Pro (12.9 Inch)" ;;
"iPad6,"[3-4]) model="iPad Pro (9.7 Inch)" ;;
"iPad7,"[1-2]) model="iPad Pro 2 (12.9 Inch)" ;;
"iPad7,"[3-4]) model="iPad Pro (10.5 Inch)" ;;
"iPad2,"[5-7]) model="iPad mini" ;;
"iPad4,"[4-6]) model="iPad mini 2" ;;
"iPad4,"[7-9]) model="iPad mini 3" ;;
@@ -304,6 +309,9 @@ get_model() {
"iPhone8,4") model="iPhone SE" ;;
"iPhone9,1" | "iPhone9,3") model="iPhone 7" ;;
"iPhone9,2" | "iPhone9,4") model="iPhone 7 Plus" ;;
"iPhone10,1" | "iPhone10,4") model="iPhone 8" ;;
"iPhone10,2" | "iPhone10,5") model="iPhone 8 Plus" ;;
"iPhone10,3" | "iPhone10,6") model="iPhone X" ;;
"iPod1,1") model="iPod touch" ;;
"ipod2,1") model="iPod touch 2G" ;;
@@ -344,6 +352,8 @@ get_model() {
model="${model//Default string}"
model="${model//Not Specified}"
model="${model//Type1ProductConfigId}"
model="${model//INVALID}"
model="${model//<2F>}"
case "$model" in
"Standard PC"*) model="KVM/QEMU (${model})" ;;
@@ -542,6 +552,9 @@ get_packages() {
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
fi
type -p butch >/dev/null && \
packages="$((packages+=$(butch list | wc -l)))"
if type -p pkg >/dev/null; then
case "$kernel_name" in
"FreeBSD") packages="$((packages+=$(pkg info | wc -l)))" ;;
@@ -676,6 +689,10 @@ get_de() {
*"xfce5"*) de="Xfce5" ;;
*"xfce"*) de="Xfce" ;;
*"mate"*) de="MATE" ;;
*"GNOME"*)
de="$(gnome-shell --version)"
de="${de/Shell }"
;;
esac
# Log that the function was run.
@@ -704,11 +721,11 @@ get_wm() {
else
case "$os" in
"Mac OS X")
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm\|[c]hunkwm')"
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm\|[c]hun[k]wm')"
case "$ps_line" in
*"kwm"*) wm="Kwm" ;;
*"chunkwm"*) wm="chunkwm" ;;
*"kwm"*) wm="Kwm" ;;
*"Amethyst"*) wm="Amethyst" ;;
*"Spectacle"*) wm="Spectacle" ;;
*) wm="Quartz Compositor" ;;
@@ -741,7 +758,7 @@ get_wm_theme() {
;;
"Sawfish")
wm_theme="$(awk -F ")" '/\(quote default-frame-style/ {print $2}' \
wm_theme="$(awk -F '\\(quote|\\)' '/default-frame-style/ {print $(NF-4)}' \
"${HOME}/.sawfish/custom")"
;;
@@ -909,7 +926,12 @@ get_cpu() {
esac
speed_dir="/sys/devices/system/cpu/cpu0/cpufreq"
temp_dir="/sys/class/hwmon/hwmon0/temp1_input"
# Select the right temperature file.
for temp_dir in /sys/class/hwmon/*; do
[[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power) ]] && \
{ temp_dir="${temp_dir}/temp1_input"; break; }
done
# Get CPU speed.
if [[ -d "$speed_dir" ]]; then
@@ -927,8 +949,8 @@ get_cpu() {
# Get CPU temp.
if [[ -f "$temp_dir" ]]; then
temp="$(< "$temp_dir")"
temp="$((temp * 100 / 10000))"
deg="$(< "$temp_dir")"
deg="$((deg * 100 / 10000))"
fi
# Get CPU cores.
@@ -991,12 +1013,12 @@ get_cpu() {
# Get CPU temp.
case "$kernel_name" in
"FreeBSD"* | "DragonFly"* | "NetBSD"*)
temp="$(sysctl -n dev.cpu.0.temperature)"
temp="${temp/C}"
deg="$(sysctl -n dev.cpu.0.temperature)"
deg="${deg/C}"
;;
"OpenBSD"* | "Bitrig"*)
temp="$(sysctl -n hw.sensors.lm0.temp0)"
temp="${temp/ degC}"
deg="$(sysctl -n hw.sensors.lm0.temp0)"
deg="${deg/ degC}"
;;
esac
;;
@@ -1113,15 +1135,15 @@ get_cpu() {
fi
# Add CPU temp to the output.
if [[ "$cpu_temp" != "off" && "$temp" ]]; then
temp="${temp//.}"
if [[ "$cpu_temp" != "off" && "$deg" ]]; then
deg="${deg//.}"
# Convert to Fahrenheit if enabled
[[ "$cpu_temp" == "F" ]] && temp="$((temp * 90 / 50 + 320))"
[[ "$cpu_temp" == "F" ]] && deg="$((deg * 90 / 50 + 320))"
# Format the output
temp="[${temp/${temp: -1}}.${temp: -1}°${cpu_temp:-C}]"
cpu="$cpu $temp"
deg="[${deg/${deg: -1}}.${deg: -1}°${cpu_temp:-C}]"
cpu="$cpu $deg"
fi
}
@@ -1410,7 +1432,7 @@ get_song() {
player="$(ps x | awk '!(/ awk|Helper|Cache|ibus|indicator/) && /mpd|mopidy|cmus|mocp|spotify|\
Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|\
xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|\
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo/ {printf $5 " " $6; exit}')"
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 " " $6; exit}')"
get_song_dbus() {
# Multiple players use an almost identical dbus command to get the information.
@@ -1441,6 +1463,7 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo/ {printf $5 " " $6;
"yarock"*) get_song_dbus "yarock" ;;
"deepin-music"*) get_song_dbus "deepinmusic" ;;
"tomahawk"*) get_song_dbus "tomahawk" ;;
"elisa"*) get_song_dbus "elisa" ;;
"audacious"*)
song="$(audtool current-song)"
@@ -1536,14 +1559,18 @@ get_resolution() {
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
fi
if [[ -e "/Library/Preferences/com.apple.windowserver.plist" ]]; then
scale_factor="$(PlistBuddy -c "Print DisplayAnyUserSets:0:0:Resolution" \
/Library/Preferences/com.apple.windowserver.plist)"
else
scale_factor=""
fi
# If no refresh rate is empty.
[[ "$resolution" == *"@ Hz"* ]] && \
resolution="${resolution//@ Hz}"
((${scale_factor%.*} == 2)) && \
[[ "${scale_factor%.*}" == 2 ]] && \
resolution="${resolution// @/@2x @}"
if [[ "$refresh_rate" == "off" ]]; then
@@ -1617,7 +1644,12 @@ get_style() {
kde_config_file="${kde_config_dir}/kdeglobals"
kde_theme="$(grep "^${kde}" "$kde_config_file")"
kde_theme="${kde_theme/${kde}*=}"
kde_theme="${kde_theme/*=}"
if [[ "$kde" == "font" ]]; then
kde_font_size="${kde_theme#*,}"
kde_font_size="${kde_font_size/,*}"
kde_theme="${kde_theme/,*} ${kde_theme/*,} ${kde_font_size}"
fi
kde_theme="$(uppercase "$kde_theme") [KDE], "
else
err "Theme: KDE config files not found, skipping."
@@ -2012,7 +2044,7 @@ get_disk() {
# Get "df" version.
df_version="$(df --version 2>&1)"
case "$df_version" in
*"blocks"*) # Haiku
*"Tracker"*) # Haiku
err "Your version of df cannot be used due to the non-standard flags"
return
;;
@@ -2245,7 +2277,13 @@ get_install_date() {
return
;;
*) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;;
*"HLOPRSTUWabc"*) # macOS ls
install_date="$(ls -dlctUT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')"
;;
*)
install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
;;
esac
install_date="${install_date//-/ }"
@@ -2264,6 +2302,19 @@ get_gpu_driver() {
gpu_driver="$(lspci -nnk | awk -F ': ' \
'/Display|3D|VGA/{nr[NR+2]}; NR in nr {printf $2 ", "}')"
gpu_driver="${gpu_driver%, }"
if [[ "$gpu_driver" == *"nvidia"* ]]; then
gpu_driver="$(< /proc/driver/nvidia/version)"
gpu_driver="${gpu_driver/*Module }"
gpu_driver="NVIDIA ${gpu_driver/ *}"
fi
;;
"Mac OS X")
if [[ "$(kextstat | grep "GeForceWeb")" != "" ]]; then
gpu_driver="NVIDIA Web Driver"
else
gpu_driver="macOS Default Graphics Driver"
fi
;;
esac
}
@@ -2483,7 +2534,7 @@ get_wallpaper() {
*)
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
image="$(awk -F\' '/feh/ {printf $2}' "${HOME}/.fehbg")"
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
elif type -p nitrogen >/dev/null; then
image="$(awk -F'=' '/file/ {printf $2;exit;}' \
@@ -2616,44 +2667,32 @@ get_image_size() {
font_width="$((term_width / columns))"
font_height="$((term_height / lines))"
case "$image_size" in
"auto")
image_size="$((columns * font_width / 2))"
term_height="$((term_height - term_height / 4))"
((term_height < image_size)) && \
image_size="$term_height"
;;
*"%")
percent="${image_size/\%}"
image_size="$((percent * term_width / 100))"
(((percent * term_height / 50) < image_size)) && \
image_size="$((percent * term_height / 100))"
;;
"none")
# Get image size so that we can do a better crop.
# Get image size.
size="$(identify -format "%w %h" "$image")"
width="${size%% *}"
height="${size##* }"
crop_mode="none"
case "$image_size" in
"square")
width="$((columns * font_width / 2))"
height="$width"
;;
*) image_size="${image_size/px}" ;;
*)
while (( width >= (term_width / 2) ||
height >= (term_height / 2) )); do
width="$((width * 10 / 15))"
height="$((height * 10 / 15))"
done
;;
esac
width="${width:-$image_size}"
height="${height:-$image_size}"
text_padding="$((width / font_width + gap + xoffset/font_width))"
}
make_thumbnail() {
# Name the thumbnail using variables so we can
# use it later.
image_name="$crop_mode-$crop_offset-$width-$height-${image//'/'/_}"
# Name the thumbnail using variables so we can use it later.
image_name="$image_size-$crop_offset-$width-$height-${image##*/}"
# Handle file extensions.
case "${image##*.}" in
@@ -2665,62 +2704,17 @@ make_thumbnail() {
# Create the thumbnail dir if it doesn't exist.
mkdir -p "$thumbnail_dir"
# Check to see if the thumbnail exists before we do any cropping.
if [[ ! -f "$thumbnail_dir/$image_name" ]]; then
# Get image size so that we can do a better crop.
if [[ -z "$size" ]]; then
size="$(identify -format "%w %h" "$image")"
og_width="${size%% *}"
og_height="${size##* }"
# This checks to see if height is greater than width
# so we can do a better crop of portrait images.
size="$og_height"
((og_height > og_width)) && size="$og_width"
fi
case "$crop_mode" in
"fit")
c="$(convert "$image" \
-colorspace srgb \
-format "%[pixel:p{0,0}]" info:)"
[[ ! -f "$thumbnail_dir/$image_name" ]] && \
convert \
-background none \
"$image" \
-trim +repage \
-gravity south \
-background "$c" \
-extent "$size"x"$size" \
-scale "$width"x"$height" \
"$thumbnail_dir/$image_name"
;;
"fill")
convert \
-strip \
-quality 50 \
-gravity "$crop_offset" \
-background none \
"$image" \
-trim +repage \
-scale "$width"x"$height"^ \
-sample "$width"x"$height"^ \
-extent "$width"x"$height" \
"$thumbnail_dir/$image_name"
;;
"none") cp "$image" "$thumbnail_dir/$image_name" ;;
*)
convert \
-background none \
"$image" \
-gravity "$crop_offset" \
-crop "$size"x"$size"+0+0 \
-quality 95 \
-scale "$width"x"$height" \
"$thumbnail_dir/$image_name"
;;
esac
fi
# The final image.
image="$thumbnail_dir/$image_name"
}
@@ -3194,6 +3188,11 @@ get_distro_colors() {
ascii_file="cloveros"
;;
"Container Linux by CoreOS"*)
set_colors 4 7 1
ascii_file="coreos"
;;
"crux_small")
set_colors 4 5 7 6
ascii_file="crux_small"
@@ -3359,6 +3358,11 @@ get_distro_colors() {
ascii_file="kubuntu"
;;
"LEDE"*)
set_colors 4 7 1
ascii_file="lede"
;;
"Linux")
set_colors fg 8 3
ascii_file="linux"
@@ -3374,6 +3378,11 @@ get_distro_colors() {
ascii_file="lubuntu"
;;
"Lunar"*)
set_colors 4 7 3
ascii_file="lunar"
;;
"mac"*"_small")
set_colors 2 3 1 5 4
ascii_file="mac_small"
@@ -3529,6 +3538,11 @@ get_distro_colors() {
ascii_file="peppermint"
;;
"Pop!_OS"*)
set_colors 6 7
ascii_file="pop_os"
;;
"Porteus"*)
set_colors 6 7
ascii_file="porteus"
@@ -4021,7 +4035,7 @@ dynamic_prompt() {
fi
# Set the prompt location.
((lines > 0)) && printf "%b" "\033[${lines}B"
((lines > 1)) && printf "%b" "\033[${lines}B"
}
old_functions() {
@@ -4388,11 +4402,9 @@ ASCII:
IMAGE:
--loop Redraw the image constantly until Ctrl+C is used. This fixes issues
in some terminals emulators when using image mode.
--size 00px | --size 00% How to size the image.
--size auto | --size square How to size the image.
Possible values: auto, 00px, 00%, none
--crop_mode mode Which crop mode to use
Takes the values: normal, fit, fill
--crop_offset value Change the crop offset for normal mode.
--crop_offset value Change the crop offset for square mode.
Possible values: northwest, north, northeast,
west, center, east, southwest, south, southeast
@@ -4687,6 +4699,11 @@ main() {
# Take a screenshot.
[[ "$scrot" == "on" ]] && take_scrot
# Add neofetch info to verbose output.
err "Neofetch command: $0 $*"
err "Neofetch version: $version"
err "Neofetch config: $config_version"
# Show error messages.
[[ "$verbose" == "on" ]] && printf "%b" "$err" >&2

View File

@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
.TH NEOFETCH "1" "September 2017" "Neofetch 3.3.0" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.5.
.TH NEOFETCH "1" "December 2017" "Neofetch 3.3.1-git" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
@@ -259,16 +259,11 @@ Possible values: bar, infobar, barinfo, off
Redraw the image constantly until Ctrl+C is used. This fixes issues
in some terminals emulators when using image mode.
.TP
\fB\-\-size\fR 00px | \fB\-\-size\fR 00%
How to size the image.
\fB\-\-size\fR auto | \fB\-\-size\fR square How to size the image.
Possible values: auto, 00px, 00%, none
.TP
\fB\-\-crop_mode\fR mode
Which crop mode to use
Takes the values: normal, fit, fill
.TP
\fB\-\-crop_offset\fR value
Change the crop offset for normal mode.
Change the crop offset for square mode.
Possible values: northwest, north, northeast,
west, center, east, southwest, south, southeast
.TP