mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c902c2d69e | ||
|
|
efa9ff6726 | ||
|
|
0e59d6c041 | ||
|
|
8e29cd00b3 | ||
|
|
f2300d3306 | ||
|
|
77596ea868 | ||
|
|
11a2adc8ed | ||
|
|
aaabb9c3c0 | ||
|
|
6e20dfe759 | ||
|
|
2e5384581f | ||
|
|
e4224c4f77 | ||
|
|
4870a863ac | ||
|
|
9ad9d4d75e | ||
|
|
80a34bdf28 | ||
|
|
a9df517fd4 | ||
|
|
6711ebc91f |
57
CHANGELOG.md
57
CHANGELOG.md
@@ -14,25 +14,62 @@
|
|||||||
- Fixed detection bug with TrueOS. [**@dawidd6**](https://github.com/dawidd6)
|
- Fixed detection bug with TrueOS. [**@dawidd6**](https://github.com/dawidd6)
|
||||||
- Added support for macOS High Sierra. [**@yslgirl**](https://github.com/yslgirl)
|
- 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 Container Linux by CoreOS. [**@chrisweeksnz**](https://github.com/chrisweeksnz)
|
||||||
- Added support for 2017 iOS devices [**@iandrewt**](https://github.com/iandrewt)
|
- Added support for 2017 iOS devices. [**@iandrewt**](https://github.com/iandrewt)
|
||||||
- Added support for LEDE. [**@dawidd6**](https://github.com/dawidd6)
|
- Added support for LEDE. [**@dawidd6**](https://github.com/dawidd6)
|
||||||
|
- Added support for Pop!\_OS. [**@jliles**](https://github.com/jliles)
|
||||||
|
- Added support for Lunar Linux.
|
||||||
|
|
||||||
|
|
||||||
|
## General
|
||||||
|
|
||||||
|
- Added more info to verbose mode for debugging.
|
||||||
|
- Fixed bug in prompt location calculation.
|
||||||
|
|
||||||
|
|
||||||
|
## Ascii
|
||||||
|
|
||||||
|
- Added color updates for Kubuntu logo. **Maulik Mistry**
|
||||||
|
|
||||||
|
|
||||||
## Images
|
## Images
|
||||||
|
|
||||||
- [MacOS/iTerm2] Fixed thumbnail not appearing (replaced by placeholder) [**@StarryTony**](https://github.com/StarryTony)
|
- [MacOS/iTerm2] Fixed thumbnail not appearing. [**@StarryTony**](https://github.com/StarryTony)
|
||||||
|
- Fixed bug with getting wallpaper from feh.
|
||||||
|
- Added `pixterm` backend.
|
||||||
|
|
||||||
## Info
|
## Info
|
||||||
|
|
||||||
|
**Desktop Environment**
|
||||||
|
|
||||||
|
- Added GNOME version.
|
||||||
|
|
||||||
**Window Manager**
|
**Window Manager**
|
||||||
|
|
||||||
- [macOS] Fixed chunkwm being detected as Kwm. [**@iandrewt**](https://github.com/iandrewt)
|
- Added support for most (*if not all*) current Wayland compositors/window manager's.
|
||||||
|
- [macOS] Fixed `chunkwm` being detected as `Kwm`. [**@iandrewt**](https://github.com/iandrewt)
|
||||||
|
|
||||||
|
**Window Manager Theme**
|
||||||
|
|
||||||
|
- Fixed `sawfish` detection.
|
||||||
|
|
||||||
**Install Date**
|
**Install Date**
|
||||||
|
|
||||||
- [macOS] Fixed Install Date. [**@iandrewt**](https://github.com/iandrewt)
|
- [macOS] Fixed Install Date. [**@iandrewt**](https://github.com/iandrewt)
|
||||||
|
|
||||||
|
**Theme**
|
||||||
|
|
||||||
|
- Fixed KDE font issue. [**@mstraube**](https://github.com/mstraube)
|
||||||
|
|
||||||
|
**CPU**
|
||||||
|
|
||||||
|
- [linux] Detect the correct temperature file to use.
|
||||||
|
- [windows] Removed `$temp` usage as it's an envar.
|
||||||
|
|
||||||
|
**GPU**
|
||||||
|
|
||||||
|
- [linux] Added driver version to NVIDIA output.
|
||||||
|
- [macOS] Added NVIDIA support. [**@iandrewt**](https://github.com/iandrewt)
|
||||||
|
|
||||||
**Package Manager**
|
**Package Manager**
|
||||||
|
|
||||||
- Added detection for Sabotage Linux's `butch` [**@MitchWeaver**](https://github.com/MitchWeaver)
|
- Added detection for Sabotage Linux's `butch` [**@MitchWeaver**](https://github.com/MitchWeaver)
|
||||||
@@ -40,3 +77,15 @@
|
|||||||
**Resolution**
|
**Resolution**
|
||||||
|
|
||||||
- [macOS] Fixed errors on non-retina screens. [**@iandrewt**](https://github.com/iandrewt)
|
- [macOS] Fixed errors on non-retina screens. [**@iandrewt**](https://github.com/iandrewt)
|
||||||
|
|
||||||
|
**Song**
|
||||||
|
|
||||||
|
- Added support for Elisa. [**@mstraube**](https://github.com/mstraube)
|
||||||
|
|
||||||
|
**Model**
|
||||||
|
|
||||||
|
- Remove more unneeded outputs. [**@konimex**](https://github.com/konimex)
|
||||||
|
|
||||||
|
**Disk**
|
||||||
|
|
||||||
|
- Update Haiku's detection. [**@dawidd6**](https://github.com/dawidd6)
|
||||||
|
|||||||
@@ -543,7 +543,7 @@ disk_display="off"
|
|||||||
# Image backend.
|
# Image backend.
|
||||||
#
|
#
|
||||||
# Default: 'ascii'
|
# Default: 'ascii'
|
||||||
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
|
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'termpix', 'pixterm', 'tycat', 'w3m'
|
||||||
# Flag: --backend
|
# Flag: --backend
|
||||||
image_backend="ascii"
|
image_backend="ascii"
|
||||||
|
|
||||||
|
|||||||
92
neofetch
92
neofetch
@@ -114,7 +114,8 @@ get_distro() {
|
|||||||
elif type -p tazpkg >/dev/null; then
|
elif type -p tazpkg >/dev/null; then
|
||||||
distro="SliTaz $(< /etc/slitaz-release)"
|
distro="SliTaz $(< /etc/slitaz-release)"
|
||||||
|
|
||||||
elif type -p kpm > /dev/null; then
|
elif type -p kpt >/dev/null && \
|
||||||
|
type -p kpm >/dev/null; then
|
||||||
distro="KSLinux"
|
distro="KSLinux"
|
||||||
|
|
||||||
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||||
@@ -487,9 +488,6 @@ get_packages() {
|
|||||||
type -p dpkg >/dev/null && \
|
type -p dpkg >/dev/null && \
|
||||||
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
type -p kpm >/dev/null && \
|
|
||||||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
|
||||||
|
|
||||||
type -p pkgtool >/dev/null && \
|
type -p pkgtool >/dev/null && \
|
||||||
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
||||||
|
|
||||||
@@ -547,6 +545,10 @@ get_packages() {
|
|||||||
type -p alps >/dev/null && \
|
type -p alps >/dev/null && \
|
||||||
packages="$((packages+=$(alps showinstalled | wc -l)))"
|
packages="$((packages+=$(alps showinstalled | wc -l)))"
|
||||||
|
|
||||||
|
type -p kpt >/dev/null && \
|
||||||
|
type -p kpm >/dev/null && \
|
||||||
|
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
if type -p cave >/dev/null; then
|
if type -p cave >/dev/null; then
|
||||||
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
||||||
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
|
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
|
||||||
@@ -666,6 +668,9 @@ get_de() {
|
|||||||
|
|
||||||
elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then
|
elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then
|
||||||
de="MATE"
|
de="MATE"
|
||||||
|
|
||||||
|
elif [[ "$TDE_FULL_SESSION" ]]; then
|
||||||
|
de="Trinity"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# When a window manager is started from a display manager
|
# When a window manager is started from a display manager
|
||||||
@@ -677,13 +682,12 @@ get_de() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Fallback to using xprop.
|
# Fallback to using xprop.
|
||||||
[[ -n "$DISPLAY" && -z "$de" ]] && \
|
[[ "$DISPLAY" && -z "$de" ]] && \
|
||||||
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
||||||
|
|
||||||
# Format strings.
|
# Format strings.
|
||||||
case "$de" in
|
case "$de" in
|
||||||
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
||||||
*"TDE_FULL_SESSION"*) de="Trinity" ;;
|
|
||||||
*"MUFFIN"* | "Cinnamon") de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
*"MUFFIN"* | "Cinnamon") de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
||||||
*"xfce4"*) de="Xfce4" ;;
|
*"xfce4"*) de="Xfce4" ;;
|
||||||
*"xfce5"*) de="Xfce5" ;;
|
*"xfce5"*) de="Xfce5" ;;
|
||||||
@@ -703,21 +707,37 @@ get_wm() {
|
|||||||
# If function was run, stop here.
|
# If function was run, stop here.
|
||||||
((wm_run == 1)) && return
|
((wm_run == 1)) && return
|
||||||
|
|
||||||
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
if [[ "$WAYLAND_DISPLAY" ]]; then
|
||||||
|
wm="$(ps -e | grep -m 1 -o -F \
|
||||||
|
-e "asc" \
|
||||||
|
-e "fireplace" \
|
||||||
|
-e "grefsen" \
|
||||||
|
-e "mazecompositor" \
|
||||||
|
-e "maynard" \
|
||||||
|
-e "motorcar" \
|
||||||
|
-e "orbment" \
|
||||||
|
-e "orbital" \
|
||||||
|
-e "perceptia" \
|
||||||
|
-e "rustland" \
|
||||||
|
-e "sway" \
|
||||||
|
-e "velox" \
|
||||||
|
-e "wavy" \
|
||||||
|
-e "wayhouse" \
|
||||||
|
-e "way-cooler" \
|
||||||
|
-e "westford" \
|
||||||
|
-e "weston")"
|
||||||
|
|
||||||
|
elif [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
||||||
id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
|
id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
|
||||||
id="${id##* }"
|
id="${id##* }"
|
||||||
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
|
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
|
||||||
wm="${wm/*_NET_WM_NAME = }"
|
wm="${wm/*WM_NAME = }"
|
||||||
wm="${wm/\"}"
|
wm="${wm/\"}"
|
||||||
wm="${wm/\"*}"
|
wm="${wm/\"*}"
|
||||||
|
|
||||||
# Window Maker does not set _NET_WM_NAME
|
# Window Maker does not set _NET_WM_NAME
|
||||||
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
|
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
|
||||||
|
|
||||||
# Fallback for Wayland wms.
|
|
||||||
[[ "$wm" == "xwlc" ]] && \
|
|
||||||
wm="$(ps -e | grep -m 1 -o -F -e "sway" -e "orbment" -e "velox" -e "orbital")"
|
|
||||||
|
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
@@ -733,11 +753,13 @@ get_wm() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
wm="$(tasklist | grep -m 1 -o -F -e "bugn" \
|
wm="$(tasklist | grep -m 1 -o -F \
|
||||||
-e "Windawesome" \
|
-e "bugn" \
|
||||||
-e "blackbox" \
|
-e "Windawesome" \
|
||||||
-e "emerge" \
|
-e "blackbox" \
|
||||||
-e "litestep")"
|
-e "emerge" \
|
||||||
|
-e "litestep")"
|
||||||
|
|
||||||
[[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)"
|
[[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)"
|
||||||
wm="${wm:+$wm, }Explorer"
|
wm="${wm:+$wm, }Explorer"
|
||||||
;;
|
;;
|
||||||
@@ -1190,7 +1212,7 @@ get_gpu() {
|
|||||||
# Read GPUs into array.
|
# Read GPUs into array.
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
gpus=($(lspci -mm | awk -F '\\"|\\" \\"|\\(' \
|
gpus=($(lspci -mm | awk -F '\\"|\\" \\"|\\(' \
|
||||||
'/"Display|"3D|"VGA/ {a[$0] = $3 " " $4} END{for(i in a)
|
'/"Display|"3D|"VGA/ {a[$0] = $1 $3 " " $4} END{for(i in a)
|
||||||
{if(!seen[a[i]]++) print a[i]}}'))
|
{if(!seen[a[i]]++) print a[i]}}'))
|
||||||
IFS="$old_ifs"
|
IFS="$old_ifs"
|
||||||
|
|
||||||
@@ -1222,9 +1244,16 @@ get_gpu() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*"intel"*)
|
*"intel"*)
|
||||||
gpu="$(glxinfo | grep "Device:.*Intel")"
|
# (sorry)
|
||||||
|
freq="$(< /sys/devices/pci0000:00/0000:\
|
||||||
|
"${gpu/ *}"/drm/card0/gt_cur_freq_mhz)"
|
||||||
|
|
||||||
|
type -p glxinfo >/dev/null && \
|
||||||
|
gpu="$(glxinfo | grep "Device:.*Intel")"
|
||||||
|
|
||||||
gpu="${gpu/*Intel/Intel}"
|
gpu="${gpu/*Intel/Intel}"
|
||||||
gpu="${gpu/'(R)'}"
|
gpu="${gpu/'(R)'}"
|
||||||
|
gpu="${gpu/'Corporation'}"
|
||||||
gpu="${gpu/ \(*}"
|
gpu="${gpu/ \(*}"
|
||||||
|
|
||||||
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
||||||
@@ -1241,7 +1270,8 @@ get_gpu() {
|
|||||||
gpu="${gpu/Intel }"
|
gpu="${gpu/Intel }"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu ${freq:+@ ${freq}Mhz}"
|
||||||
|
|
||||||
((++gpu_num))
|
((++gpu_num))
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -1631,7 +1661,7 @@ get_style() {
|
|||||||
# Fix weird output when the function is run multiple times.
|
# Fix weird output when the function is run multiple times.
|
||||||
unset gtk2_theme gtk3_theme theme path
|
unset gtk2_theme gtk3_theme theme path
|
||||||
|
|
||||||
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
if [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
||||||
# Get DE if user has disabled the function.
|
# Get DE if user has disabled the function.
|
||||||
((de_run != 1)) && get_de
|
((de_run != 1)) && get_de
|
||||||
|
|
||||||
@@ -2374,7 +2404,8 @@ image_backend() {
|
|||||||
"ascii") get_ascii ;;
|
"ascii") get_ascii ;;
|
||||||
"off") image_backend="off" ;;
|
"off") image_backend="off" ;;
|
||||||
|
|
||||||
"caca" | "catimg" | "jp2a" | "iterm2" | "termpix" | "tycat" | "w3m" | "sixel")
|
"caca" | "catimg" | "jp2a" | "iterm2" | "termpix" |\
|
||||||
|
"tycat" | "w3m" | "sixel" | "pixterm")
|
||||||
get_image_source
|
get_image_source
|
||||||
|
|
||||||
if [[ ! -f "$image" ]]; then
|
if [[ ! -f "$image" ]]; then
|
||||||
@@ -2400,7 +2431,7 @@ image_backend() {
|
|||||||
*)
|
*)
|
||||||
err "Image: Unknown image backend specified '$image_backend'."
|
err "Image: Unknown image backend specified '$image_backend'."
|
||||||
err "Image: Valid backends are: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2',
|
err "Image: Valid backends are: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2',
|
||||||
'off', 'sixel', 'termpix', 'tycat', 'w3m')"
|
'off', 'sixel', 'pixterm', 'termpix', 'tycat', 'w3m')"
|
||||||
err "Image: Falling back to ascii mode."
|
err "Image: Falling back to ascii mode."
|
||||||
get_ascii
|
get_ascii
|
||||||
;;
|
;;
|
||||||
@@ -2800,8 +2831,16 @@ display_image() {
|
|||||||
to_off "Image: jp2a failed to display the image."
|
to_off "Image: jp2a failed to display the image."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"pixterm")
|
||||||
|
pixterm -tc "$((width / font_width))" \
|
||||||
|
-tr "$((height / font_height))" \
|
||||||
|
"$image" ||\
|
||||||
|
to_off "Image: pixterm failed to display the image."
|
||||||
|
;;
|
||||||
|
|
||||||
"sixel")
|
"sixel")
|
||||||
img2sixel -w "$width" "$image" || to_off "Image: libsixel failed to display the image."
|
img2sixel -w "$width" "$image" ||\
|
||||||
|
to_off "Image: libsixel failed to display the image."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"termpix")
|
"termpix")
|
||||||
@@ -4430,6 +4469,7 @@ IMAGE BACKEND:
|
|||||||
--catimg source Shortcut to use 'catimg' backend.
|
--catimg source Shortcut to use 'catimg' backend.
|
||||||
--iterm2 source Shortcut to use 'iterm2' backend.
|
--iterm2 source Shortcut to use 'iterm2' backend.
|
||||||
--jp2a source Shortcut to use 'jp2a' backend.
|
--jp2a source Shortcut to use 'jp2a' backend.
|
||||||
|
--pixterm source Shortcut to use 'pixterm' backend.
|
||||||
--sixel source Shortcut to use 'sixel' backend.
|
--sixel source Shortcut to use 'sixel' backend.
|
||||||
--termpix source Shortcut to use 'termpix' backend.
|
--termpix source Shortcut to use 'termpix' backend.
|
||||||
--tycat source Shortcut to use 'tycat' backend.
|
--tycat source Shortcut to use 'tycat' backend.
|
||||||
@@ -4645,8 +4685,8 @@ get_args() {
|
|||||||
# Image backend
|
# Image backend
|
||||||
"--backend") image_backend="$2" ;;
|
"--backend") image_backend="$2" ;;
|
||||||
"--source") image_source="$2" ;;
|
"--source") image_source="$2" ;;
|
||||||
"--ascii" | "--caca" | "--catimg" | "--jp2a" | "--iterm2" | "--off" | "--sixel" |\
|
"--ascii" | "--caca" | "--catimg" | "--jp2a" | "--iterm2" | "--off" | "--pixterm" |\
|
||||||
"--termpix" | "--tycat" | "--w3m")
|
"--sixel" | "--termpix" | "--tycat" | "--w3m")
|
||||||
image_backend="${1/--}"
|
image_backend="${1/--}"
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"-"* | "") ;;
|
"-"* | "") ;;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.5.
|
||||||
.TH NEOFETCH "1" "September 2017" "Neofetch 3.3.0" "User Commands"
|
.TH NEOFETCH "1" "December 2017" "Neofetch 3.3.1-git" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
Neofetch \- A fast, highly customizable system info script
|
Neofetch \- A fast, highly customizable system info script
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -207,6 +207,9 @@ Shortcut to use 'iterm2' backend.
|
|||||||
\fB\-\-jp2a\fR source
|
\fB\-\-jp2a\fR source
|
||||||
Shortcut to use 'jp2a' backend.
|
Shortcut to use 'jp2a' backend.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-pixterm\fR source
|
||||||
|
Shortcut to use 'pixterm' backend.
|
||||||
|
.TP
|
||||||
\fB\-\-sixel\fR source
|
\fB\-\-sixel\fR source
|
||||||
Shortcut to use 'sixel' backend.
|
Shortcut to use 'sixel' backend.
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
Reference in New Issue
Block a user