mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Compare commits
38 Commits
5.0.0
...
ascii-imag
Author | SHA1 | Date | |
---|---|---|---|
|
754ffe2fae | ||
|
17f2f5b2a6 | ||
|
8ee4710225 | ||
|
b8eb8fbaa7 | ||
|
3b5ec364e6 | ||
|
6c38b81fe1 | ||
|
6775a652d3 | ||
|
5d33b8d99d | ||
|
614fad0421 | ||
|
2fef4d9849 | ||
|
78f355ba6d | ||
|
085bba208a | ||
|
9fe7ec4ccf | ||
|
2cc7b84189 | ||
|
2afc5a27af | ||
|
f960594cd4 | ||
|
71df4ffd3b | ||
|
1332874265 | ||
|
22df76c3b6 | ||
|
497b782ea1 | ||
|
c99fc64b67 | ||
|
d43da37d00 | ||
|
911c70adc3 | ||
|
f70390ede0 | ||
|
c651f5e068 | ||
|
288036eb26 | ||
|
aae3271422 | ||
|
61ee751147 | ||
|
50804a6877 | ||
|
ef94cc6764 | ||
|
31af4fe003 | ||
|
1da3523e9e | ||
|
a596b6467f | ||
|
c152801a8a | ||
|
97b4f04d33 | ||
|
cf07cb0c35 | ||
|
af455b2967 | ||
|
bdd21fa8a7 |
27
CHANGELOG.md
27
CHANGELOG.md
@@ -7,9 +7,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
**Contributors**
|
||||
|
||||
- [**@nero**](https://github.com/nero)
|
||||
- [**@alyssais**](https://github.com/alyssais)
|
||||
- [**@plgruener**](https://github.com/plgruener)
|
||||
|
||||
**Info**
|
||||
|
||||
- **Shell**: Fixed output for mksh [**@nero**](https://github.com/nero)
|
||||
- **Packages** [macOS]: Added detection of Nix [**@alyssais**](https://github.com/alyssais)
|
||||
- **Packages**: Fixed packages from pkginfo (pkgutils) not appearing in CRUX/Janus Linux.
|
||||
- **Terminal Font**: Added support for Yakuake [**@plgruener**](https://github.com/plgruener)
|
||||
|
||||
**ASCII**
|
||||
|
||||
- Fixed a bug where ASCII logo changes the terminal foreground color. [**@plgruener**](https://github.com/plgruener)
|
||||
|
||||
## [5.0.0] - 2018-06-18
|
||||
|
||||
<img src="https://i.imgur.com/ZQI2EYz.png" alt="logo" height="100px">
|
||||
|
||||
A lot of the script has been rewritten and all lint errors have been resolved. There's probably a few bugs so the version number has been bumped to `5.0`. Thanks to everyone who contributed to this release.
|
||||
A lot of the script has been rewritten and all lint errors have been resolved. There's probably a few bugs so the version number has been bumped to `5.0`. Expect a minor release in the coming days to fix any bugs that come up. Thanks to everyone who contributed to this release.
|
||||
|
||||
**Contributors**
|
||||
|
||||
@@ -89,11 +108,12 @@ See: https://github.com/dylanaraps/neofetch/issues/1001
|
||||
|
||||
## [4.0.2] - 2018-05-19
|
||||
|
||||
### This fixes default config issues on Android, AIX, HP-UX and possibly others.
|
||||
|
||||
- [config] Fixed `/dev/stdin` error.
|
||||
- [config] Added `--print_config` to display the default config file.
|
||||
- [macOS] Fixed xquartz issue.
|
||||
|
||||
|
||||
## [4.0.1] - 2018-05-18
|
||||
|
||||
### Note: This release is only required for those running `bash <3.3`.
|
||||
@@ -2756,7 +2776,8 @@ Changelog:
|
||||
Let me know if you're having issues.
|
||||
|
||||
|
||||
[Unreleased]: https://github.com/dylanaraps/neofetch/compare/4.0.2...HEAD
|
||||
[Unreleased]: https://github.com/dylanaraps/neofetch/compare/5.0.0...HEAD
|
||||
[5.0.0]: https://github.com/dylanaraps/neofetch/compare/4.0.2...5.0.0
|
||||
[4.0.2]: https://github.com/dylanaraps/neofetch/compare/4.0.1...4.0.2
|
||||
[4.0.1]: https://github.com/dylanaraps/neofetch/compare/4.0.0...4.0.1
|
||||
[4.0.0]: https://github.com/dylanaraps/neofetch/compare/3.4.0...4.0.0
|
||||
|
@@ -6,8 +6,8 @@
|
||||
<a href="https://travis-ci.org/dylanaraps/neofetch"><img src="https://travis-ci.org/dylanaraps/neofetch.svg?branch=master"></a>
|
||||
<a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
||||
<a href="https://github.com/dylanaraps/neofetch/releases"><img src="https://img.shields.io/github/release/dylanaraps/neofetch.svg"></a>
|
||||
<a href="https://www.patreon.com/dyla"><img src="https://img.shields.io/badge/donate-patreon-yellow.svg"></a>
|
||||
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V7QNJNKS3WYVS"><img src="https://img.shields.io/badge/donate-paypal-green.svg"></a>
|
||||
<a href="https://repology.org/metapackage/neofetch"><img src="https://repology.org/badge/tiny-repos/neofetch.svg" alt="Packaging status"></a>
|
||||
<a href="#donate"><img src="https://img.shields.io/badge/donate-donate-yellow.svg"></a>
|
||||
</p>
|
||||
|
||||
<img src="https://i.imgur.com/GFmC5Ad.png" alt="neofetch" align="right" height="240px">
|
||||
@@ -58,5 +58,5 @@ Neofetch supports almost 150 different operating systems. From Linux to Windows,
|
||||
|
||||
Donations allow me to spend more time working on `neofetch` and my other Open Source projects. If you like `neofetch` and want to give back in some way you can donate at the links below.
|
||||
|
||||
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V7QNJNKS3WYVS"><img src="https://img.shields.io/badge/donate-paypal-green.svg"></a> <a href="https://www.patreon.com/dyla"><img src="https://img.shields.io/badge/donate-patreon-yellow.svg"></a>
|
||||
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V7QNJNKS3WYVS"><img src="https://img.shields.io/badge/donate-paypal-yellow.svg"></a> <a href="https://www.patreon.com/dyla"><img src="https://img.shields.io/badge/donate-patreon-yellow.svg"> </a><a href="https://liberapay.com/2211/"><img src="https://img.shields.io/badge/donate-liberapay-yellow.svg"></a>
|
||||
|
||||
|
144
neofetch
144
neofetch
@@ -28,7 +28,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
version="5.0.0"
|
||||
version="5.0.1"
|
||||
|
||||
bash_version="${BASH_VERSION/.*}"
|
||||
sys_locale="${LANG:-C}"
|
||||
@@ -201,7 +201,7 @@ speed_type="bios_limit"
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'.
|
||||
# Flag: --speed_shorthand.
|
||||
# Flag: --speed_shorthand
|
||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
||||
#
|
||||
# Example:
|
||||
@@ -445,7 +445,6 @@ disk_subtitle="mount"
|
||||
# sayonara
|
||||
# smplayer
|
||||
# spotify
|
||||
# Spotify
|
||||
# tomahawk
|
||||
# vlc
|
||||
# xmms2d
|
||||
@@ -930,7 +929,7 @@ get_distro() {
|
||||
fi
|
||||
|
||||
distro="$(trim_quotes "$distro")"
|
||||
distro="${distro/'NAME='}"
|
||||
distro="${distro/NAME=}"
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
@@ -1184,7 +1183,7 @@ get_uptime() {
|
||||
|
||||
"Mac OS X" | "iPhone OS" | "BSD" | "FreeMiNT")
|
||||
boot="$(sysctl -n kern.boottime)"
|
||||
boot="${boot/'{ sec = '}"
|
||||
boot="${boot/\{ sec = }"
|
||||
boot="${boot/,*}"
|
||||
|
||||
# Get current date in seconds.
|
||||
@@ -1275,6 +1274,7 @@ get_packages() {
|
||||
has "sorcery" && tot gaze installed
|
||||
has "alps" && tot alps showinstalled
|
||||
has "butch" && tot butch list
|
||||
has "pkginfo" && tot pkginfo -i
|
||||
|
||||
# Counting files/dirs.
|
||||
has "emerge" && dir /var/db/pkg/*/*/
|
||||
@@ -1291,8 +1291,7 @@ get_packages() {
|
||||
has "kpm-pkg" && ((packages+="$(kpm --get-selections | grep -cv deinstall$)"))
|
||||
|
||||
case "$kernel_name" in
|
||||
"FreeBSD") has "pkg" && tot pkg info ;;
|
||||
"SunOS") has "pkginfo" && tot pkginfo -i ;;
|
||||
"FreeBSD") has "pkg" && tot pkg info ;;
|
||||
*)
|
||||
has "pkg" && dir /var/db/pkg/*
|
||||
|
||||
@@ -1310,9 +1309,10 @@ get_packages() {
|
||||
;;
|
||||
|
||||
"Mac OS X" | "MINIX")
|
||||
has "port" && tot port installed && ((packages-=1))
|
||||
has "brew" && dir /usr/local/Cellar/*
|
||||
has "pkgin" && tot pkgin list
|
||||
has "port" && tot port installed && ((packages-=1))
|
||||
has "brew" && dir /usr/local/Cellar/*
|
||||
has "pkgin" && tot pkgin list
|
||||
has "nix-env" && dir /nix/store/*/
|
||||
;;
|
||||
|
||||
"AIX"| "FreeMiNT")
|
||||
@@ -1367,7 +1367,7 @@ get_shell() {
|
||||
"sh" | "ash" | "dash") ;;
|
||||
|
||||
"mksh" | "ksh")
|
||||
shell+="$("$SHELL" -c "printf %s \$KSH_VERSION")"
|
||||
shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
|
||||
shell="${shell/ * KSH}"
|
||||
shell="${shell/version}"
|
||||
;;
|
||||
@@ -1419,7 +1419,7 @@ get_de() {
|
||||
((wm_run != 1)) && get_wm
|
||||
|
||||
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
||||
de="${XDG_CURRENT_DESKTOP/'X-'}"
|
||||
de="${XDG_CURRENT_DESKTOP/X\-}"
|
||||
de="${de/Budgie:GNOME/Budgie}"
|
||||
de="${de/:Unity7:ubuntu}"
|
||||
|
||||
@@ -1445,7 +1445,7 @@ get_de() {
|
||||
esac
|
||||
|
||||
# Fallback to using xprop.
|
||||
[[ "$DISPLAY" && -z "$de" ]] && \
|
||||
[[ "$DISPLAY" && -z "$de" ]] && type -p xprop &>/dev/null && \
|
||||
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
||||
|
||||
# Format strings.
|
||||
@@ -1503,12 +1503,14 @@ get_wm() {
|
||||
-e "weston")"
|
||||
|
||||
elif [[ "$DISPLAY" && "$os" != "Mac OS X" && "$os" != "FreeMiNT" ]]; then
|
||||
id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
|
||||
id="${id##* }"
|
||||
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
|
||||
wm="${wm/*WM_NAME = }"
|
||||
wm="${wm/\"}"
|
||||
wm="${wm/\"*}"
|
||||
if type -p xprop &>/dev/null; then
|
||||
id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
|
||||
id="${id##* }"
|
||||
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
|
||||
wm="${wm/*WM_NAME = }"
|
||||
wm="${wm/\"}"
|
||||
wm="${wm/\"*}"
|
||||
fi
|
||||
|
||||
# Window Maker does not set _NET_WM_NAME
|
||||
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
|
||||
@@ -1680,7 +1682,7 @@ get_wm_theme() {
|
||||
wm_theme="$(awk '/(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' "$kdebugrc")"
|
||||
fi
|
||||
|
||||
wm_theme="${wm_theme/'theme='}"
|
||||
wm_theme="${wm_theme/theme=}"
|
||||
;;
|
||||
|
||||
"Quartz Compositor")
|
||||
@@ -1711,7 +1713,7 @@ get_wm_theme() {
|
||||
path="${path//\\/\/}"
|
||||
|
||||
wm_theme="$(grep '^session\.styleFile:' "${path/\.exe/.rc}")"
|
||||
wm_theme="${wm_theme/'session.styleFile: '}"
|
||||
wm_theme="${wm_theme/session\.styleFile: }"
|
||||
wm_theme="${wm_theme##*\\}"
|
||||
wm_theme="${wm_theme%.*}"
|
||||
;;
|
||||
@@ -1721,11 +1723,6 @@ get_wm_theme() {
|
||||
}
|
||||
|
||||
get_cpu() {
|
||||
# NetBSD emulates the Linux /proc filesystem instead of using sysctl for hw
|
||||
# information so we have to use this block below which temporarily sets the
|
||||
# OS to "Linux" for the duration of this function.
|
||||
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
|
||||
|
||||
case "$os" in
|
||||
"Linux" | "MINIX" | "Windows")
|
||||
# Get CPU name.
|
||||
@@ -2059,11 +2056,10 @@ get_gpu() {
|
||||
brand="${brand:-${gpu/*AMD*/AMD}}"
|
||||
brand="${brand:-${gpu/*ATI*/ATi}}"
|
||||
|
||||
gpu="${gpu/'[AMD/ATI]' }"
|
||||
gpu="${gpu/'[AMD]' }"
|
||||
gpu="${gpu/\[AMD\/ATI\] }"
|
||||
gpu="${gpu/\[AMD\] }"
|
||||
gpu="${gpu/OEM }"
|
||||
gpu="${gpu/Advanced Micro Devices, Inc.}"
|
||||
gpu="${gpu/ \/ *}"
|
||||
gpu="${gpu/*\[}"
|
||||
gpu="${gpu/\]*}"
|
||||
gpu="$brand $gpu"
|
||||
@@ -2077,10 +2073,11 @@ get_gpu() {
|
||||
|
||||
*"intel"*)
|
||||
gpu="${gpu/*Intel/Intel}"
|
||||
gpu="${gpu/'(R)'}"
|
||||
gpu="${gpu/'Corporation'}"
|
||||
gpu="${gpu/\(R\)}"
|
||||
gpu="${gpu/Corporation}"
|
||||
gpu="${gpu/ \(*}"
|
||||
gpu="${gpu/Integrated Graphics Controller}"
|
||||
gpu="${gpu/*Xeon*/Intel HD Graphics}"
|
||||
|
||||
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
||||
;;
|
||||
@@ -2109,7 +2106,7 @@ get_gpu() {
|
||||
else
|
||||
gpu="$(system_profiler SPDisplaysDataType |\
|
||||
awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
||||
gpu="${gpu//'/ $'}"
|
||||
gpu="${gpu//\/ \$}"
|
||||
gpu="${gpu%,*}"
|
||||
|
||||
cache "gpu" "$gpu"
|
||||
@@ -2169,7 +2166,7 @@ get_gpu() {
|
||||
|
||||
*)
|
||||
gpu="$(glxinfo | grep -F 'OpenGL renderer string')"
|
||||
gpu="${gpu/'OpenGL renderer string: '}"
|
||||
gpu="${gpu/OpenGL renderer string: }"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@@ -2754,14 +2751,14 @@ get_term() {
|
||||
term="$(tty)"
|
||||
;;
|
||||
|
||||
"ruby"|"1"|"systemd"|"sshd"*|"python"*|"USER"*"PID"*|"kdeinit"*|"launchd"*)
|
||||
"ruby"|"1"|"tmux"*|"systemd"|"sshd"*|"python"*|"USER"*"PID"*|"kdeinit"*|"launchd"*)
|
||||
break
|
||||
;;
|
||||
|
||||
"gnome-terminal-") term="gnome-terminal" ;;
|
||||
"urxvtd") term="urxvt" ;;
|
||||
*"nvim") term="Neovim Terminal" ;;
|
||||
*"NeoVimServer"*) term="VimR Terminal" ;;
|
||||
*"tmux"*) term="tmux" ;;
|
||||
*) term="${name##*/}" ;;
|
||||
esac
|
||||
done
|
||||
@@ -2875,7 +2872,7 @@ END
|
||||
END { print font " " size}' "${confs[0]}")"
|
||||
;;
|
||||
|
||||
"konsole"*)
|
||||
"konsole" | "yakuake")
|
||||
# Get Process ID of current konsole window / tab
|
||||
child="$(get_ppid "$$")"
|
||||
|
||||
@@ -3019,7 +3016,7 @@ END
|
||||
|
||||
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
||||
xrdb="$(xrdb -query)"
|
||||
term_font="$(grep -i "${term/d}"'\**\.*font' <<< "$xrdb")"
|
||||
term_font="$(grep -im 1 -e "^${term/d}"'\**\.*font' -e '^\*font' <<< "$xrdb")"
|
||||
term_font="${term_font/*"*font:"}"
|
||||
term_font="${term_font/*".font:"}"
|
||||
term_font="${term_font/*"*.font:"}"
|
||||
@@ -3096,7 +3093,7 @@ get_disk() {
|
||||
for disk in "${disks[@]}"; do
|
||||
# Create a second array and make each element split at whitespace this time.
|
||||
IFS=" " read -ra disk_info <<< "$disk"
|
||||
disk_perc="${disk_info[4]/'%'}"
|
||||
disk_perc="${disk_info[4]/\%}"
|
||||
|
||||
case "$df_version" in
|
||||
*"befhikm"*)
|
||||
@@ -3179,12 +3176,19 @@ get_battery() {
|
||||
;;
|
||||
|
||||
"OpenBSD"* | "Bitrig"*)
|
||||
battery0full="$(sysctl -n hw.sensors.acpibat0.watthour0)"
|
||||
battery0full="${battery0full/ Wh*}"
|
||||
battery0full="$(sysctl -n hw.sensors.acpibat0.watthour0\
|
||||
hw.sensors.acpibat0.amphour0)"
|
||||
battery0full="${battery0full%% *}"
|
||||
|
||||
battery0now="$(sysctl -n hw.sensors.acpibat0.watthour3)"
|
||||
battery0now="${battery0now/ Wh*}"
|
||||
battery0now="$(sysctl -n hw.sensors.acpibat0.watthour3\
|
||||
hw.sensors.acpibat0.amphour3)"
|
||||
battery0now="${battery0now%% *}"
|
||||
|
||||
state="$(sysctl -n hw.sensors.acpibat0.raw0)"
|
||||
state="${state##? (battery }"
|
||||
state="${state%)*}"
|
||||
|
||||
[[ "${state}" == "charging" ]] && battery_state="charging"
|
||||
[[ "$battery0full" ]] && \
|
||||
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
|
||||
;;
|
||||
@@ -3213,9 +3217,9 @@ get_battery() {
|
||||
[[ "$battery_state" ]] && battery+=" Charging"
|
||||
|
||||
case "$battery_display" in
|
||||
"bar") battery="$(bar "${battery/'%'*}" 100)" ;;
|
||||
"infobar") battery="${battery} $(bar "${battery/'%'*}" 100)" ;;
|
||||
"barinfo") battery="$(bar "${battery/'%'*}" 100)${info_color} ${battery}" ;;
|
||||
"bar") battery="$(bar "${battery/\%*}" 100)" ;;
|
||||
"infobar") battery="${battery} $(bar "${battery/\%*}" 100)" ;;
|
||||
"barinfo") battery="$(bar "${battery/\%*}" 100)${info_color} ${battery}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -3243,7 +3247,7 @@ get_local_ip() {
|
||||
|
||||
"Haiku")
|
||||
local_ip="$(ifconfig | awk -F ': ' '/Bcast/ {print $2}')"
|
||||
local_ip="${local_ip/', Bcast'}"
|
||||
local_ip="${local_ip/, Bcast}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
@@ -3389,7 +3393,7 @@ image_backend() {
|
||||
}
|
||||
|
||||
get_ascii() {
|
||||
if [[ -f "$image_source" ]]; then
|
||||
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||
ascii_data="$(< "$image_source")"
|
||||
else
|
||||
err "Ascii: Ascii file not found, using distro ascii."
|
||||
@@ -3400,8 +3404,7 @@ get_ascii() {
|
||||
|
||||
# Calculate size of ascii file in line length / line count.
|
||||
while IFS=$'\n' read -r line; do
|
||||
((${#line} > ascii_length)) && ascii_length="${#line}"
|
||||
((++lines))
|
||||
((++lines,${#line}>ascii_length)) && ascii_length="${#line}"
|
||||
done <<< "${ascii_data//\$\{??\}}"
|
||||
|
||||
# Colors.
|
||||
@@ -3413,7 +3416,7 @@ get_ascii() {
|
||||
ascii_data="${ascii_data//\$\{c6\}/$c6}"
|
||||
|
||||
((text_padding=ascii_length+gap))
|
||||
printf '%b\n' "$ascii_data"
|
||||
printf '%b\n' "$ascii_data${reset}"
|
||||
LC_ALL=C
|
||||
}
|
||||
|
||||
@@ -3488,6 +3491,11 @@ END
|
||||
image="$(decode_url "$image")"
|
||||
;;
|
||||
|
||||
"GNOME"*)
|
||||
image="$(gsettings get org.gnome.desktop.background picture-uri)"
|
||||
image="$(decode_url "$image")"
|
||||
;;
|
||||
|
||||
*)
|
||||
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
|
||||
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
|
||||
@@ -3509,7 +3517,7 @@ END
|
||||
esac
|
||||
|
||||
# Strip un-needed info from the path.
|
||||
image="${image/'file://'}"
|
||||
image="${image/file:\/\/}"
|
||||
image="$(trim_quotes "$image")"
|
||||
;;
|
||||
esac
|
||||
@@ -3640,17 +3648,15 @@ get_image_size() {
|
||||
"none")
|
||||
# Get image size so that we can do a better crop.
|
||||
read -r width height <<< "$(identify -format "%w %h" "$image")"
|
||||
crop_mode="none"
|
||||
|
||||
while ((width >= (term_width / 2) || height >= term_height)); do
|
||||
((width=width/2))
|
||||
((height=height/2))
|
||||
((width=width/2,height=height/2))
|
||||
done
|
||||
|
||||
crop_mode="none"
|
||||
;;
|
||||
|
||||
*)
|
||||
image_size="${image_size/px}"
|
||||
;;
|
||||
*) image_size="${image_size/px}" ;;
|
||||
esac
|
||||
|
||||
width="${width:-$image_size}"
|
||||
@@ -4170,7 +4176,7 @@ get_ppid() {
|
||||
case "$os" in
|
||||
"Windows")
|
||||
ppid="$(ps -p "${1:-$PPID}" | awk '{printf $2}')"
|
||||
ppid="${ppid/'PPID'}"
|
||||
ppid="${ppid/PPID}"
|
||||
;;
|
||||
|
||||
"Linux")
|
||||
@@ -4191,7 +4197,7 @@ get_process_name() {
|
||||
case "$os" in
|
||||
"Windows")
|
||||
name="$(ps -p "${1:-$PPID}" | awk '{printf $8}')"
|
||||
name="${name/'COMMAND'}"
|
||||
name="${name/COMMAND}"
|
||||
name="${name/*\/}"
|
||||
;;
|
||||
|
||||
@@ -4948,7 +4954,7 @@ ${c1} /\
|
||||
/${c2} __ \
|
||||
/ ( ) \
|
||||
/ __| |__\\\
|
||||
/// \\\\\
|
||||
/// \\\\\\
|
||||
EOF
|
||||
;;
|
||||
|
||||
@@ -6133,6 +6139,24 @@ WW W
|
||||
EOF
|
||||
;;
|
||||
|
||||
"januslinux"*)
|
||||
set_colors 7
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} ________________
|
||||
|\ \
|
||||
| \ \
|
||||
| \ \
|
||||
| \ ______________\
|
||||
| | |
|
||||
| | |
|
||||
| | |
|
||||
\ | januslinux |
|
||||
\ | |
|
||||
\ | |
|
||||
\|______________|
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Kali"*)
|
||||
set_colors 4 8
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
|
@@ -1,5 +1,5 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
|
||||
.TH NEOFETCH "1" "June 2018" "Neofetch 5.0.0" "User Commands"
|
||||
.TH NEOFETCH "1" "June 2018" "Neofetch 5.0.1" "User Commands"
|
||||
.SH NAME
|
||||
Neofetch \- A fast, highly customizable system info script
|
||||
.SH SYNOPSIS
|
||||
|
Reference in New Issue
Block a user