mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Compare commits
52 Commits
6.0.0
...
wm_theme-m
Author | SHA1 | Date | |
---|---|---|---|
|
3b713ca92f | ||
|
c690118884 | ||
|
3546ec347c | ||
|
625fdcf7c4 | ||
|
288a81a9e2 | ||
|
c688850bcc | ||
|
3dc7720c52 | ||
|
f41e5f11b5 | ||
|
fcca698229 | ||
|
cabe84481c | ||
|
2fccec783e | ||
|
1b75608304 | ||
|
1abc2ada77 | ||
|
b5915ac836 | ||
|
7fd9ff75a3 | ||
|
1a820cbbdf | ||
|
11d8aa683a | ||
|
6f423e3970 | ||
|
789cdcea40 | ||
|
c7c1cf59ec | ||
|
6e9f00445f | ||
|
e8939d58cf | ||
|
60d3aa3f10 | ||
|
762d239c32 | ||
|
95fb38e73f | ||
|
d87a13458f | ||
|
78aed92b39 | ||
|
ccf9fb8ebd | ||
|
c8d2a0442c | ||
|
bbbaf37e21 | ||
|
cb6e78efec | ||
|
e3a6b9f40d | ||
|
0b812fbc5d | ||
|
91f8510ef3 | ||
|
5b301c773b | ||
|
68645339d3 | ||
|
415ef5d4ae | ||
|
acc8103dde | ||
|
78e0fa3212 | ||
|
64188697b8 | ||
|
9431a593f6 | ||
|
23fc5aff3d | ||
|
7df1d0e3ef | ||
|
228fb778cb | ||
|
3c07884032 | ||
|
766113a0c2 | ||
|
661d003be2 | ||
|
2ecd8102d0 | ||
|
b6b320a75a | ||
|
b49ecb68f8 | ||
|
ca9d161bc9 | ||
|
7a64ce22a8 |
58
CHANGELOG.md
58
CHANGELOG.md
@@ -5,13 +5,40 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [6.0.1] - N/A
|
||||
|
||||
- **ascii**: Fixed bug causing files to not work.
|
||||
- **ascii**: Fixed bug causing files named `ascii` to not load.
|
||||
- **term_font** [kitty]: Fixed bug with empty config.
|
||||
- **get_cols**: Variables are now local. [**@asantam**](https://github.com/asantam)
|
||||
- **man_page**: More consistent arg documentation. [**@xPMo**](https://github.com/xPMo)
|
||||
|
||||
|
||||
## [6.0.0] - 2019-01-08
|
||||
|
||||
<img src="https://i.imgur.com/ZQI2EYz.png" alt="logo" height="100px">
|
||||
|
||||
This release fixes a wide range of bugs and adds some neat new features.
|
||||
Scroll down to "highlights" to see the bigger changes from this release.
|
||||
A big thank you to @konimex, @iandrewt and the contributors below who
|
||||
kept development going during my absence.
|
||||
|
||||
Expect a minor bug fix release sometime this week as I'm sure new bugs
|
||||
will come up. I've done extensive testing but things always slip through.
|
||||
|
||||
**Contributors**
|
||||
|
||||
[**@konimex**](https://github.com/konimex), [**@iandrewt**](https://github.com/iandrewt), [**@arisinfenix**](https://github.com/arisinfenix), [**@xPMo**](https://github.com/xPMo), [**@nero**](https://github.com/nero), [**@alyssais**](https://github.com/alyssais), [**@plgruener**](https://github.com/plgruener), [**@StarryTony**](https://github.com/StarryTony), [**@julianaito**](https://github.com/julianaito), [**@HolyStephano**](https://github.com/HolyStephano), [**@nikitenich**](https://github.com/nikitenich), [**@Appadeia**](https://github.com/Appadeia), [**@marlonn**](https://github.com/marlonn), [**@Snuggle**](https://github.com/dylanaraps/neofetch/commits?author=Snuggle), [**@Phuurl**](https://github.com/Phuurl), [**@erikdubois**](https://github.com/erikdubois)
|
||||
[**@konimex**](https://github.com/konimex), [**@iandrewt**](https://github.com/iandrewt), [**@arisinfenix**](https://github.com/arisinfenix), [**@xPMo**](https://github.com/xPMo), [**@nero**](https://github.com/nero), [**@alyssais**](https://github.com/alyssais),
|
||||
[**@plgruener**](https://github.com/plgruener), [**@StarryTony**](https://github.com/StarryTony), [**@julianaito**](https://github.com/julianaito), [**@HolyStephano**](https://github.com/HolyStephano),
|
||||
[**@nikitenich**](https://github.com/nikitenich), [**@Appadeia**](https://github.com/Appadeia), [**@marlonn**](https://github.com/marlonn), [**@Snuggle**](https://github.com/dylanaraps/neofetch/commits?author=Snuggle), [**@Phuurl**](https://github.com/Phuurl), [**@erikdubois**](https://github.com/erikdubois)
|
||||
|
||||
|
||||
**Breaking Changes**
|
||||
|
||||
- **Config**: Removed `get_line_break()`.
|
||||
- Alternative: `prin '\n'`
|
||||
- Rationale: fix a bug that's been lingering for a couple of years now.
|
||||
|
||||
**OS**
|
||||
|
||||
@@ -26,7 +53,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
**Highlights**
|
||||
|
||||
- [ASCII] Added support for command output. You can now use whatever terminal commands you like as the ASCII art.
|
||||
[ASCII] Added support for command output. You can now use whatever
|
||||
terminal commands you like as the ASCII art.
|
||||
|
||||
```sh
|
||||
# Use fortune and cowsay as ascii art.
|
||||
@@ -38,7 +66,8 @@ neofetch --ascii "$(figlet -w 30 hello world)"
|
||||
|
||||
<img src="https://i.imgur.com/ozoXAvz.jpg" alt="scrot" height="400px">
|
||||
|
||||
- Added a new "simple" mode. You can now use neofetch for scripting by getting it to output individual info functions in plain text.
|
||||
Added a new "simple" mode. You can now use neofetch for scripting
|
||||
by getting it to output individual info functions in plain text.
|
||||
|
||||
```sh
|
||||
# Example:
|
||||
@@ -61,8 +90,20 @@ IFS=$'\n' read -d "" -ra info < <(neofetch memory uptime wm)
|
||||
info=("${info[@]##*: }")
|
||||
```
|
||||
|
||||
Added new image backend [chafa](https://hpjansson.org/chafa/) (`--chafa`)
|
||||
which displays images in the terminal using unicode characters.
|
||||
|
||||
```sh
|
||||
neofetch --chafa ~/Pictures/meow.jpg
|
||||
```
|
||||
|
||||
<img src="https://i.imgur.com/fCOoWlA.jpg" alt="scrot" height="400px">
|
||||
|
||||
|
||||
**Info**
|
||||
|
||||
- **Color Blocks**: Fixed issue where disabling blocks caused an extra newline to appear.
|
||||
- **Color Blocks**: Color blocks now have their padding built in. No more need for `get_line_break()`.
|
||||
- **Song**: Added snippet to display music player.
|
||||
- `[[ $player ]] && prin "Music Player" "$player"`
|
||||
- NOTE: Must have `info "Song" song` enabled.
|
||||
@@ -82,6 +123,7 @@ info=("${info[@]##*: }")
|
||||
- **Terminal Font**: Added support for Yakuake [**@plgruener**](https://github.com/plgruener)
|
||||
- **Terminal Font** [Kitty]: Use `kitty --debug-config` to get font information.
|
||||
- **Memory** [Solaris]: Updated memory detection to use pages. [**@konimex**](https://github.com/konimex)
|
||||
- **Memory**: Added option to show memory percentage (`--memory_percent`).
|
||||
- **Model** [OpenBSD]: Added vmm (OpenBSD hypervisor) support [**@julianaito**](https://github.com/julianaito)
|
||||
- **Model** [macOS]: Added VirtualSMC as a new FakeSMC alternative for Hackintosh. [**@nikitenich**](https://github.com/nikitenich)
|
||||
- **WM**: Added detection for FVWM. [**@julianaito**](https://github.com/julianaito)
|
||||
@@ -89,9 +131,12 @@ info=("${info[@]##*: }")
|
||||
- **Disk** [OpenBSD]: Added a separate disk array creation using `awk` since one cannot directly use `/dev/...` unless being root or in the `operator` group. [**@julianaito**](https://github.com/julianaito)
|
||||
- **Battery** [OpenBSD]: Improve charge `%` and add status. **Charlène**
|
||||
- **GPU** [AMD]: Remove unnecessary check.
|
||||
- **Public IP**: Added configurable timeout to requests.
|
||||
- **Resolution**: If resolution is not found, don't print anything.
|
||||
|
||||
**ASCII**
|
||||
|
||||
- Fixed issues with various ASCII arts (namely the `_small` ones).
|
||||
- Added support for command output.
|
||||
- `neofetch --ascii "$(fortune|cowsay -W 30)"`
|
||||
- `neofetch --ascii "$(figlet -w 30 hello world)"`
|
||||
@@ -103,9 +148,14 @@ info=("${info[@]##*: }")
|
||||
|
||||
**Image**
|
||||
|
||||
- Added new image backend [chafa](https://hpjansson.org/chafa/) (`--chafa`).
|
||||
- **w3m**: Fixed issues with URxvt and internal borders.
|
||||
- **w3m**: Fixed issues with URxvt and cursor position.
|
||||
- **w3m**: Fixed issue with `bash 3`.
|
||||
- **macOS**: Unset IFS to get window size. [**@StarryTony**](https://github.com/StarryTony)
|
||||
- **Kitty**: Use `kitty +kitten icat` instead of the deprecated `kitty icat`. [**@HolyStephano**](https://github.com/HolyStephano)
|
||||
- **Kitty**: Update docs. [**@Snuggle**](https://github.com/dylanaraps/neofetch/commits?author=Snuggle)
|
||||
- Thumbnails are high quality again.
|
||||
- Cached thumbnails are now stored with PATH to prevent collision issues.
|
||||
|
||||
## [5.0.0] - 2018-06-18
|
||||
|
35
README.md
35
README.md
@@ -7,7 +7,6 @@
|
||||
<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://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">
|
||||
@@ -26,37 +25,3 @@ Neofetch supports almost 150 different operating systems. From Linux to Windows,
|
||||
|
||||
|
||||
### More: \[[Dependencies](https://github.com/dylanaraps/neofetch/wiki/Dependencies)\] \[[Installation](https://github.com/dylanaraps/neofetch/wiki/Installation)\] \[[Wiki](https://github.com/dylanaraps/neofetch/wiki)\]
|
||||
|
||||
## Articles
|
||||
|
||||
- https://lamiradadelreplicante.com/2016/05/15/la-informacion-de-tu-sistema-en-la-terminal-con-neofetch/
|
||||
- https://linuxconfig.org/how-to-display-system-information-with-neofetch
|
||||
- https://www.2daygeek.com/neofetch-display-linux-systems-information-ascii-distribution-logo-terminal/
|
||||
- https://www.cyberciti.biz/howto/neofetch-awesome-system-info-bash-script-for-linux-unix-macos/
|
||||
- https://www.lffl.org/2016/11/neofetch-le-informazioni-sistema-sul-terminale-stile.html
|
||||
- https://www.maketecheasier.com/display-system-information-neofetch-linux/
|
||||
- https://www.omgubuntu.co.uk/2016/11/neofetch-terminal-system-info-app
|
||||
- https://www.omgubuntu.co.uk/2016/12/cli-system-tool-neofetch-2-0-released
|
||||
- https://www.omgubuntu.co.uk/2017/01/neofetch-3-0-released
|
||||
- https://www.ostechnix.com/neofetch-display-linux-systems-information/
|
||||
- https://www.techrepublic.com/article/how-to-get-all-the-information-you-need-about-your-linux-machine-with-a-single-command/
|
||||
- https://www.tecmint.com/neofetch-shows-linux-system-information-with-logo/
|
||||
- https://www.youtube.com/watch?v=bgepGW858fc
|
||||
- https://www.linuxuprising.com/2018/05/display-system-information-on-linux.html
|
||||
- https://esgeeks.com/neofetch-informacion-sistema-linux/
|
||||
|
||||
|
||||
## Thanks
|
||||
|
||||
- [Contributors](https://github.com/dylanaraps/neofetch/contributors)
|
||||
- [Packagers](https://github.com/dylanaraps/neofetch/issues/115)
|
||||
- [Screenfetch](https://github.com/KittyKatt/screenFetch)
|
||||
- [ufetch](https://github.com/jschx/ufetch)
|
||||
|
||||
|
||||
## Donate
|
||||
|
||||
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-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>
|
||||
|
||||
|
411
neofetch
411
neofetch
@@ -28,7 +28,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
version="6.0.0"
|
||||
version="6.0.1"
|
||||
|
||||
bash_version="${BASH_VERSION/.*}"
|
||||
sys_locale="${LANG:-C}"
|
||||
@@ -76,7 +76,7 @@ print_info() {
|
||||
# info "Battery" battery
|
||||
# info "Font" font
|
||||
# info "Song" song
|
||||
# [[ $player ]] && prin "Music Player" "$player"
|
||||
# [[ "$player" ]] && prin "Music Player" "$player"
|
||||
# info "Local IP" local_ip
|
||||
# info "Public IP" public_ip
|
||||
# info "Users" users
|
||||
@@ -108,7 +108,7 @@ kernel_shorthand="on"
|
||||
# Shorten the output of the distro function
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off', 'tiny'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --distro_shorthand
|
||||
# Supports: Everything except Windows and Haiku
|
||||
distro_shorthand="off"
|
||||
@@ -132,13 +132,13 @@ os_arch="on"
|
||||
# Shorten the output of the uptime function
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off', 'tiny'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --uptime_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: '2 days, 10 hours, 3 mins'
|
||||
# off: '2 days, 10 hours, 3 minutes'
|
||||
# tiny: '2d 10h 3m'
|
||||
# off: '2 days, 10 hours, 3 minutes'
|
||||
uptime_shorthand="on"
|
||||
|
||||
|
||||
@@ -849,7 +849,7 @@ get_distro() {
|
||||
|
||||
case "$os" in
|
||||
"Linux" | "BSD" | "MINIX")
|
||||
if [[ -f /bedrock/etc/bedrock-release && $PATH == */bedrock/cross/* ]]; then
|
||||
if [[ -f "/bedrock/etc/bedrock-release" && "$PATH" == */bedrock/cross/* ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on" | "tiny") distro="Bedrock Linux" ;;
|
||||
*) distro="$(< /bedrock/etc/bedrock-release)"
|
||||
@@ -906,7 +906,7 @@ get_distro() {
|
||||
# Chrome OS doesn't conform to the /etc/*-release standard.
|
||||
# While the file is a series of variables they can't be sourced
|
||||
# by the shell since the values aren't quoted.
|
||||
elif [[ -f /etc/lsb-release && "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
||||
elif [[ -f "/etc/lsb-release" && "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
||||
distro="$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)"
|
||||
|
||||
elif [[ -f "/etc/os-release" || \
|
||||
@@ -938,7 +938,7 @@ get_distro() {
|
||||
distro="${distro/DragonFly/DragonFlyBSD}"
|
||||
|
||||
# Workarounds for FreeBSD based distros.
|
||||
[[ -f "/etc/pcbsd-lang" ]] && distro="PCBSD"
|
||||
[[ -f "/etc/pcbsd-lang" ]] && distro="PCBSD"
|
||||
[[ -f "/etc/trueos-lang" ]] && distro="TrueOS"
|
||||
|
||||
# /etc/pacbsd-release is an empty file
|
||||
@@ -946,15 +946,14 @@ get_distro() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$(< /proc/version)" == *"Microsoft"* ||
|
||||
"$kernel_version" == *"Microsoft"* ]]; then
|
||||
if [[ "$(< /proc/version)" == *Microsoft* || "$kernel_version" == *Microsoft* ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on") distro+=" [Windows 10]" ;;
|
||||
"tiny") distro="Windows 10" ;;
|
||||
*) distro+=" on Windows 10" ;;
|
||||
esac
|
||||
|
||||
elif [[ "$(< /proc/version)" == *"chrome-bot"* || -f "/dev/cros_ec" ]]; then
|
||||
elif [[ "$(< /proc/version)" == *chrome-bot* || -f "/dev/cros_ec" ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on") distro+=" [Chrome OS]" ;;
|
||||
"tiny") distro="Chrome OS" ;;
|
||||
@@ -1059,15 +1058,15 @@ get_model() {
|
||||
if [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
|
||||
|
||||
elif [[ -f /sys/devices/virtual/dmi/id/product_name ||
|
||||
-f /sys/devices/virtual/dmi/id/product_version ]]; then
|
||||
elif [[ -f "/sys/devices/virtual/dmi/id/product_name" ||
|
||||
-f "/sys/devices/virtual/dmi/id/product_version" ]]; then
|
||||
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
||||
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
||||
|
||||
elif [[ -f /sys/firmware/devicetree/base/model ]]; then
|
||||
elif [[ -f "/sys/firmware/devicetree/base/model" ]]; then
|
||||
model="$(< /sys/firmware/devicetree/base/model)"
|
||||
|
||||
elif [[ -f /tmp/sysinfo/model ]]; then
|
||||
elif [[ -f "/tmp/sysinfo/model" ]]; then
|
||||
model="$(< /tmp/sysinfo/model)"
|
||||
fi
|
||||
;;
|
||||
@@ -1293,7 +1292,7 @@ get_packages() {
|
||||
tot() { IFS=$'\n' read -d "" -ra pkgs < <("$@");((packages+="${#pkgs[@]}"));pac "${#pkgs[@]}"; }
|
||||
|
||||
# Redefine tot() for Bedrock Linux.
|
||||
[[ -f /bedrock/etc/bedrock-release && $PATH == */bedrock/cross/* ]] && {
|
||||
[[ -f "/bedrock/etc/bedrock-release" && "$PATH" == */bedrock/cross/* ]] && {
|
||||
tot() {
|
||||
IFS=$'\n' read -d "" -ra pkgs < <(for s in $(brl list); do strat -r "$s" "$@"; done)
|
||||
((packages+="${#pkgs[@]}"))
|
||||
@@ -1390,10 +1389,11 @@ get_packages() {
|
||||
;;
|
||||
|
||||
"Haiku")
|
||||
dir /boot/system/package-links/*
|
||||
has "pkgman" && dir /boot/system/package-links/*
|
||||
;;
|
||||
|
||||
"IRIX")
|
||||
manager="swpkg"
|
||||
tot versions -b && ((packages-=3))
|
||||
;;
|
||||
esac
|
||||
@@ -1575,8 +1575,10 @@ get_wm() {
|
||||
wm="${wm/\"*}"
|
||||
fi
|
||||
|
||||
# Window Maker does not set _NET_WM_NAME
|
||||
# Rename window managers to their proper values.
|
||||
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
|
||||
[[ "$wm" =~ "GNOME Shell" ]] && wm="Mutter"
|
||||
|
||||
# Fallback for non-EWMH WMs.
|
||||
[[ -z "$wm" ]] && \
|
||||
wm="$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
|
||||
@@ -1751,15 +1753,23 @@ get_wm_theme() {
|
||||
"Quartz Compositor")
|
||||
global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist"
|
||||
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
|
||||
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")"
|
||||
wm_theme_color="$(PlistBuddy -c "Print AppleAccentColor" "$global_preferences")"
|
||||
|
||||
[[ -z "$wm_theme" ]] && \
|
||||
wm_theme="Light"
|
||||
|
||||
[[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)) && \
|
||||
wm_theme_color="Blue"
|
||||
case "$wm_theme_color" in
|
||||
"-1") wm_theme_color="Graphite" ;;
|
||||
"0") wm_theme_color="Red" ;;
|
||||
"1") wm_theme_color="Orange" ;;
|
||||
"2") wm_theme_color="Yellow" ;;
|
||||
"3") wm_theme_color="Green" ;;
|
||||
"5") wm_theme_color="Purple" ;;
|
||||
"6") wm_theme_color="Pink" ;;
|
||||
*) wm_theme_color="Blue" ;;
|
||||
esac
|
||||
|
||||
wm_theme="${wm_theme_color:-Graphite} ($wm_theme)"
|
||||
wm_theme="${wm_theme_color} ($wm_theme)"
|
||||
;;
|
||||
|
||||
*"Explorer")
|
||||
@@ -1806,13 +1816,9 @@ get_cpu() {
|
||||
;;
|
||||
|
||||
*)
|
||||
cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ {
|
||||
printf $2;
|
||||
exit
|
||||
}' "$cpu_file")"
|
||||
|
||||
[[ "$cpu" == *"processor rev"* ]] && \
|
||||
cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$cpu_file")"
|
||||
cpu="$(awk -F ': | @' \
|
||||
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
||||
printf $2; exit}' "$cpu_file")"
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -1839,8 +1845,7 @@ get_cpu() {
|
||||
fi
|
||||
|
||||
# Get CPU temp.
|
||||
[[ -f "$temp_dir" ]] && \
|
||||
deg="$(($(< "$temp_dir") * 100 / 10000))"
|
||||
[[ -f "$temp_dir" ]] && deg="$(($(< "$temp_dir") * 100 / 10000))"
|
||||
|
||||
# Get CPU cores.
|
||||
case "$cpu_cores" in
|
||||
@@ -2103,9 +2108,7 @@ get_gpu() {
|
||||
# Checking the first two array elements should
|
||||
# be safe since there won't be 2 intel outputs if
|
||||
# there's a dedicated GPU in play.
|
||||
[[ "${gpus[0]}" == *Intel* && \
|
||||
"${gpus[1]}" == *Intel* ]] && \
|
||||
unset -v "gpus[0]"
|
||||
[[ "${gpus[0]}" == *Intel* && "${gpus[1]}" == *Intel* ]] && unset -v "gpus[0]"
|
||||
|
||||
for gpu in "${gpus[@]}"; do
|
||||
# GPU shorthand tests.
|
||||
@@ -2311,10 +2314,20 @@ get_memory() {
|
||||
esac
|
||||
;;
|
||||
|
||||
"Solaris")
|
||||
"Solaris" | "AIX")
|
||||
hw_pagesize="$(pagesize)"
|
||||
pages_total="$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')"
|
||||
pages_free="$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')"
|
||||
case "$os" in
|
||||
"Solaris")
|
||||
pages_total="$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')"
|
||||
pages_free="$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')"
|
||||
;;
|
||||
|
||||
"AIX")
|
||||
IFS=$'\n'"| " read -d "" -ra mem_stat <<< "$(svmon -G -O unit=page)"
|
||||
pages_total="${mem_stat[11]}"
|
||||
pages_free="${mem_stat[16]}"
|
||||
;;
|
||||
esac
|
||||
mem_total="$((pages_total * hw_pagesize / 1024 / 1024))"
|
||||
mem_free="$((pages_free * hw_pagesize / 1024 / 1024))"
|
||||
mem_used="$((mem_total - mem_free))"
|
||||
@@ -2326,15 +2339,6 @@ get_memory() {
|
||||
mem_used="$((${mem_used/max} / 1024 / 1024))"
|
||||
;;
|
||||
|
||||
"AIX")
|
||||
IFS=$'\n'"| " read -d "" -ra mem_stat <<< "$(svmon -G -O unit=MB)"
|
||||
|
||||
mem_total="${mem_stat[11]/.*}"
|
||||
mem_free="${mem_stat[16]/.*}"
|
||||
mem_used="$((mem_total - mem_free))"
|
||||
mem_label="MB"
|
||||
;;
|
||||
|
||||
"IRIX")
|
||||
IFS=$'\n' read -d "" -ra mem_cmd <<< "$(pmem)"
|
||||
IFS=" " read -ra mem_stat <<< "${mem_cmd[0]}"
|
||||
@@ -2355,7 +2359,7 @@ get_memory() {
|
||||
|
||||
esac
|
||||
|
||||
[[ $memory_percent == on ]] && ((mem_perc=mem_used * 100 / mem_total))
|
||||
[[ "$memory_percent" == "on" ]] && ((mem_perc=mem_used * 100 / mem_total))
|
||||
|
||||
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB} ${mem_perc:+(${mem_perc}%)}"
|
||||
|
||||
@@ -2409,8 +2413,7 @@ get_song() {
|
||||
player="$(ps aux | awk -v pattern="(${players:1})" \
|
||||
'!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
||||
|
||||
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
||||
player="$music_player"
|
||||
[[ "$music_player" && "$music_player" != "auto" ]] && player="$music_player"
|
||||
|
||||
get_song_dbus() {
|
||||
# Multiple players use an almost identical dbus command to get the information.
|
||||
@@ -2618,7 +2621,7 @@ get_resolution() {
|
||||
esac
|
||||
|
||||
resolution="${resolution%,*}"
|
||||
[[ -z ${resolution/x} ]] && resolution=
|
||||
[[ -z "${resolution/x}" ]] && resolution=
|
||||
}
|
||||
|
||||
get_style() {
|
||||
@@ -2797,11 +2800,8 @@ get_term() {
|
||||
esac
|
||||
|
||||
# Most likely TosWin2 on FreeMiNT - quick check
|
||||
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && \
|
||||
term="TosWin2"
|
||||
|
||||
[[ "$SSH_CONNECTION" ]] && \
|
||||
term="$SSH_TTY"
|
||||
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2"
|
||||
[[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
|
||||
|
||||
# Check $PPID for terminal emulator.
|
||||
while [[ -z "$term" ]]; do
|
||||
@@ -2921,17 +2921,17 @@ END
|
||||
|
||||
"kitty"*)
|
||||
kitty_config="$(kitty --debug-config)"
|
||||
term_font_size="${kitty_config/*font_size}"
|
||||
term_font_size="${term_font_size/$'\n'*}"
|
||||
term_font="${kitty_config/*font_family}"
|
||||
term_font="${term_font/$'\n'*} $term_font_size"
|
||||
[[ "$kitty_config" != *font_family* ]] && return
|
||||
|
||||
term_font="$(awk '/^font_family|^font_size/ {printf $2 " "}' <<< "$kitty_config")"
|
||||
;;
|
||||
|
||||
"konsole" | "yakuake")
|
||||
# Get Process ID of current konsole window / tab
|
||||
child="$(get_ppid "$$")"
|
||||
|
||||
IFS=$'\n' read -d "" -ra konsole_instances < <(qdbus | grep -F 'org.kde.konsole')
|
||||
IFS=$'\n' read -d "" -ra konsole_instances \
|
||||
< <(qdbus | awk '/org.kde.konsole/ {print $1}')
|
||||
|
||||
for i in "${konsole_instances[@]}"; do
|
||||
IFS=$'\n' read -d "" -ra konsole_sessions < <(qdbus "$i" | grep -F '/Sessions/')
|
||||
@@ -2965,7 +2965,7 @@ END
|
||||
mateterm_config="/tmp/mateterm.cfg"
|
||||
|
||||
# Ensure /tmp exists and we do not overwrite anything.
|
||||
if [[ -d /tmp && ! -f "$mateterm_config" ]]; then
|
||||
if [[ -d "/tmp" && ! -f "$mateterm_config" ]]; then
|
||||
mate-terminal --save-config="$mateterm_config"
|
||||
|
||||
role="$(xprop -id "${WINDOWID}" WM_WINDOW_ROLE)"
|
||||
@@ -3030,7 +3030,7 @@ END
|
||||
# On Linux we can get the exact path to the running binary through the procfs
|
||||
# (in case `st` is launched from outside of $PATH) on other systems we just
|
||||
# have to guess and assume `st` is invoked from somewhere in the users $PATH
|
||||
[[ -L /proc/$parent/exe ]] && binary="/proc/$parent/exe" || binary="$(type -p st)"
|
||||
[[ -L "/proc/$parent/exe" ]] && binary="/proc/$parent/exe" || binary="$(type -p st)"
|
||||
|
||||
# Grep the output of strings on the `st` binary for anything that looks vaguely
|
||||
# like a font definition. NOTE: There is a slight limitation in this approach.
|
||||
@@ -3083,8 +3083,7 @@ END
|
||||
term_font="$(trim "${term_font/*"faceName:"}")"
|
||||
|
||||
# xft: isn't required at the beginning so we prepend it if it's missing
|
||||
[[ "${term_font:0:1}" != "-" && \
|
||||
"${term_font:0:4}" != "xft:" ]] && \
|
||||
[[ "${term_font:0:1}" != "-" && "${term_font:0:4}" != "xft:" ]] && \
|
||||
term_font="xft:$term_font"
|
||||
|
||||
# Xresources has two different font formats, this checks which
|
||||
@@ -3357,6 +3356,8 @@ get_gpu_driver() {
|
||||
}
|
||||
|
||||
get_cols() {
|
||||
local blocks blocks2 cols
|
||||
|
||||
if [[ "$color_blocks" == "on" ]]; then
|
||||
# Convert the width to space chars.
|
||||
printf -v block_width "%${block_width}s"
|
||||
@@ -3410,7 +3411,7 @@ image_backend() {
|
||||
{ image_backend="ascii"; err "Image: Imagemagick not found, falling back to ascii mode."; }
|
||||
|
||||
case "${image_backend:-off}" in
|
||||
"ascii") get_ascii ;;
|
||||
"ascii") print_ascii ;;
|
||||
"off") image_backend="off" ;;
|
||||
|
||||
"caca" | "chafa" | "jp2a" | "iterm2" | "termpix" |\
|
||||
@@ -3441,7 +3442,7 @@ image_backend() {
|
||||
err "Image: Valid backends are: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'kitty',
|
||||
'off', 'sixel', 'pixterm', 'termpix', 'tycat', 'w3m')"
|
||||
err "Image: Falling back to ascii mode."
|
||||
get_ascii
|
||||
print_ascii
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -3449,13 +3450,14 @@ image_backend() {
|
||||
[[ "$image_backend" != "off" ]] && printf '\e[%sA\e[9999999D' "${lines:-0}"
|
||||
}
|
||||
|
||||
get_ascii() {
|
||||
[[ ! "$image_source" =~ (ascii|auto) ]] &&
|
||||
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||
ascii_data="$(< "$image_source")"
|
||||
else
|
||||
ascii_data="$image_source"
|
||||
fi
|
||||
print_ascii() {
|
||||
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||
ascii_data="$(< "$image_source")"
|
||||
elif [[ "$image_source" == "ascii" || $image_source == auto ]]; then
|
||||
:
|
||||
else
|
||||
ascii_data="$image_source"
|
||||
fi
|
||||
|
||||
# Set locale to get correct padding.
|
||||
LC_ALL="$sys_locale"
|
||||
@@ -3467,7 +3469,7 @@ get_ascii() {
|
||||
done <<< "${ascii_data//\$\{??\}}"
|
||||
|
||||
# Fallback if file not found.
|
||||
((lines==1)) && { lines=; ascii_len=; image_source="auto"; get_distro_ascii; get_ascii; return; }
|
||||
((lines==1)) && { lines=; ascii_len=; image_source=auto; get_distro_ascii; print_ascii; return; }
|
||||
|
||||
# Colors.
|
||||
ascii_data="${ascii_data//\$\{c1\}/$c1}"
|
||||
@@ -3603,49 +3605,10 @@ get_w3m_img_path() {
|
||||
get_window_size() {
|
||||
# This functions gets the current window size in
|
||||
# pixels.
|
||||
#
|
||||
# We first try to use the escape sequence "\033[14t"
|
||||
# to get the terminal window size in pixels. If this
|
||||
# fails we then fallback to using "xdotool" or other
|
||||
# programs.
|
||||
|
||||
# Tmux has a special way of reading escape sequences
|
||||
# so we have to use a slightly different sequence to
|
||||
# get the terminal size.
|
||||
if [[ "$image_backend" == "tycat" ]]; then
|
||||
printf '%b' '\e}qs\000'
|
||||
|
||||
else
|
||||
case "${TMUX:-null}" in
|
||||
"null") printf '%b' '\e[14t' ;;
|
||||
*) printf '%b' '\ePtmux;\e\e[14t\e\\ ' ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# The escape codes above print the desired output as
|
||||
# user input so we have to use read to store the out
|
||||
# -put as a variable.
|
||||
# The 1 second timeout is required for older bash
|
||||
case "${BASH_VERSINFO[0]}" in
|
||||
4|5) IFS=';t' read -d t -t 0.05 -sra term_size ;;
|
||||
*) IFS=';t' read -d t -t 1 -sra term_size ;;
|
||||
esac
|
||||
unset IFS
|
||||
|
||||
# Split the string into height/width.
|
||||
if [[ "$image_backend" == "tycat" ]]; then
|
||||
term_width="$((term_size[2] * term_size[0]))"
|
||||
term_height="$((term_size[3] * term_size[1]))"
|
||||
|
||||
else
|
||||
term_height="${term_size[1]}"
|
||||
term_width="${term_size[2]}"
|
||||
fi
|
||||
|
||||
[[ "$image_backend" == "kitty" ]] && \
|
||||
[[ "$image_backend" == "kitty" ]] &&
|
||||
IFS=x read -r term_width term_height < <(kitty +kitten icat --print-window-size)
|
||||
|
||||
# Get terminal width/height if \e[14t is unsupported.
|
||||
# Get terminal width/height.
|
||||
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
||||
if type -p xdotool &>/dev/null; then
|
||||
IFS=$'\n' read -d "" -ra win < <(xdotool getactivewindow getwindowgeometry --shell %1)
|
||||
@@ -3727,7 +3690,7 @@ get_image_size() {
|
||||
esac
|
||||
|
||||
# Check for terminal padding.
|
||||
[[ $image_backend == w3m ]] && term_padding
|
||||
[[ "$image_backend" == "w3m" ]] && term_padding
|
||||
|
||||
width="${width:-$image_size}"
|
||||
height="${height:-$image_size}"
|
||||
@@ -3886,7 +3849,7 @@ display_image() {
|
||||
to_ascii() {
|
||||
err "$1"
|
||||
image_backend="ascii"
|
||||
get_ascii
|
||||
print_ascii
|
||||
|
||||
# Set cursor position next image/ascii.
|
||||
printf '\e[%sA\e[9999999D' "${lines:-0}"
|
||||
@@ -4112,8 +4075,6 @@ get_full_path() {
|
||||
}
|
||||
|
||||
get_user_config() {
|
||||
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
|
||||
|
||||
# --config /path/to/config.conf
|
||||
if [[ -f "$config_file" ]]; then
|
||||
source "$config_file"
|
||||
@@ -4128,10 +4089,11 @@ get_user_config() {
|
||||
source "${XDG_CONFIG_HOME}/neofetch/config"
|
||||
err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config)"
|
||||
|
||||
else
|
||||
elif [[ -z "$no_config" ]]; then
|
||||
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
|
||||
|
||||
# The config file doesn't exist, create it.
|
||||
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
|
||||
printf '%s\n' "$config" > "$config_file"
|
||||
fi
|
||||
}
|
||||
@@ -4196,21 +4158,29 @@ kde_config_dir() {
|
||||
|
||||
term_padding() {
|
||||
# Get terminal padding to properly align cursor.
|
||||
[[ -z $term ]] && get_term
|
||||
[[ -z "$term" ]] && get_term
|
||||
|
||||
case "$term" in
|
||||
urxvt*|"rxvt-unicode")
|
||||
[[ -z "$xrdb" ]] && xrdb="$(xrdb -query)"
|
||||
[[ -z "$xrdb" ]] &&
|
||||
xrdb="$(xrdb -query)"
|
||||
|
||||
[[ $xrdb != *".internalBorder:"* ]] &&
|
||||
return
|
||||
|
||||
padding="${xrdb/*.internalBorder:}"
|
||||
((padding=${padding/$'\n'*}))
|
||||
padding="${padding/$'\n'*}"
|
||||
|
||||
[[ $padding =~ ^[0-9]+$ ]] ||
|
||||
padding=
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
dynamic_prompt() {
|
||||
[[ $image_backend == off ]] && { printf '\n'; return; }
|
||||
[[ $image_backend != ascii ]] && ((lines=(height + yoffset) / font_height + 1))
|
||||
[[ $image_backend == w3m ]] && ((lines=lines + padding / font_height + 1))
|
||||
[[ "$image_backend" == "off" ]] && { printf '\n'; return; }
|
||||
[[ "$image_backend" != "ascii" ]] && ((lines=(height + yoffset) / font_height + 1))
|
||||
[[ "$image_backend" == "w3m" ]] && ((lines=lines + padding / font_height + 1))
|
||||
|
||||
# If the ascii art is taller than the info.
|
||||
((lines=lines>info_height?lines-info_height+1:1))
|
||||
@@ -4322,7 +4292,7 @@ INFO:
|
||||
|
||||
NOTE: You can supply multiple args. eg. 'neofetch --disable cpu gpu'
|
||||
|
||||
--package_managers on/off Hide/Show Package Manager names . (tiny, on, off)
|
||||
--package_managers on/off Hide/Show Package Manager names . (on, tiny, off)
|
||||
--os_arch on/off Hide/Show OS architecture.
|
||||
--speed_type type Change the type of cpu speed to display.
|
||||
Possible values: current, min, max, bios,
|
||||
@@ -4349,7 +4319,7 @@ INFO:
|
||||
NOTE: For FreeBSD and NetBSD-based systems, you need to enable
|
||||
coretemp kernel module. This only supports newer Intel processors.
|
||||
|
||||
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
|
||||
--distro_shorthand on/off Shorten the output of distro (on, tiny, off)
|
||||
|
||||
NOTE: This option won't work in Windows (Cygwin)
|
||||
|
||||
@@ -4357,7 +4327,7 @@ INFO:
|
||||
|
||||
NOTE: This option won't work in BSDs (except PacBSD and PC-BSD)
|
||||
|
||||
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
|
||||
--uptime_shorthand on/off Shorten the output of uptime (on, tiny, off)
|
||||
--refresh_rate on/off Whether to display the refresh rate of each monitor
|
||||
Unsupported on Windows
|
||||
--gpu_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
|
||||
@@ -4463,7 +4433,7 @@ ASCII:
|
||||
'Ubuntu-Studio' or 'Ubuntu-Budgie' to use the flavors.
|
||||
|
||||
NOTE: Alpine, Arch, CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS,
|
||||
OpenBSD, and Void have a smaller logo variant.
|
||||
OpenBSD, postmarketOS, and Void have a smaller logo variant.
|
||||
|
||||
NOTE: Use '{distro name}_small' to use the small variants.
|
||||
|
||||
@@ -4497,6 +4467,7 @@ IMAGE:
|
||||
OTHER:
|
||||
--config /path/to/config Specify a path to a custom config file
|
||||
--config none Launch the script without a config file
|
||||
--no_config Don't create the user config file.
|
||||
--print_config Print the default config file to stdout.
|
||||
--stdout Turn off all colors and disables any ASCII/image backend.
|
||||
--help Print this text and exit
|
||||
@@ -4516,7 +4487,7 @@ exit 1
|
||||
|
||||
get_args() {
|
||||
# Check the commandline flags early for '--config'.
|
||||
[[ "$*" != *--config* ]] && get_user_config
|
||||
[[ "$*" != *--config* && "$*" != *--no_config* ]] && get_user_config
|
||||
|
||||
while [[ "$1" ]]; do
|
||||
case "$1" in
|
||||
@@ -4677,6 +4648,7 @@ get_args() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"--no_config") no_config="on" ;;
|
||||
"--stdout") stdout="on" ;;
|
||||
"-v") verbose="on" ;;
|
||||
"--print_config") printf '%s\n' "$config"; exit ;;
|
||||
@@ -4766,7 +4738,7 @@ get_args() {
|
||||
|
||||
get_simple() {
|
||||
while [[ "$1" ]]; do
|
||||
[[ $(type -t "get_$1") == function ]] && {
|
||||
[[ "$(type -t "get_$1")" == "function" ]] && {
|
||||
get_distro
|
||||
stdout
|
||||
simple=1
|
||||
@@ -5235,27 +5207,28 @@ EOF
|
||||
;;
|
||||
|
||||
"Artix"*)
|
||||
set_colors 6 4 2 7
|
||||
set_colors 6 6 7 1
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} d${c2}c.
|
||||
${c1} x${c2}dc.
|
||||
${c1} '.${c4}.${c1} d${c2}dlc.
|
||||
${c1} c${c2}0d:${c1}o${c2}xllc;
|
||||
${c1} :${c2}0ddlolc,lc,
|
||||
${c1} :${c1}ko${c4}.${c1}:${c2}0ddollc..dlc.
|
||||
${c1} ;${c1}K${c2}kxoOddollc' cllc.
|
||||
${c1} ,${c1}K${c2}kkkxdddllc, ${c4}.${c2}lll:
|
||||
${c1} ,${c1}X${c2}kkkddddlll;${c3}...';${c1}d${c2}llll${c3}dxk:
|
||||
${c1} ,${c1}X${c2}kkkddddllll${c3}oxxxddo${c2}lll${c3}oooo,
|
||||
${c3} xxk${c1}0${c2}kkkdddd${c1}o${c2}lll${c1}o${c3}ooooooolooooc;${c1}.
|
||||
${c3} ddd${c2}kkk${c1}d${c2}ddd${c1}ol${c2}lc:${c3}:;,'.${c3}... .${c2}lll;
|
||||
${c1} .${c3}xd${c1}x${c2}kk${c1}xd${c2}dl${c1}'cl:${c4}. ${c2}.llc,
|
||||
${c1} .${c1}0${c2}kkkxddl${c4}. ${c2};'${c4}. ${c2};llc.
|
||||
${c1} .${c1}K${c2}Okdcddl${c4}. ${c2}cllc${c4}.
|
||||
${c1} 0${c2}Okd''dc. .cll;
|
||||
${c1} k${c2}Okd' .llc,
|
||||
${c1} d${c2}Od, 'lc.
|
||||
${c1} :,${c4}. ${c2}...
|
||||
${c1} '
|
||||
'o'
|
||||
'ooo'
|
||||
'ooxoo'
|
||||
'ooxxxoo'
|
||||
'oookkxxoo'
|
||||
'oiioxkkxxoo'
|
||||
':;:iiiioxxxoo'
|
||||
`'.;::ioxxoo'
|
||||
'-. `':;jiooo'
|
||||
'oooio-.. `'i:io'
|
||||
'ooooxxxxoio:,. `'-;'
|
||||
'ooooxxxxxkkxoooIi:-. `'
|
||||
'ooooxxxxxkkkkxoiiiiiji'
|
||||
'ooooxxxxxkxxoiiii:'` .i'
|
||||
'ooooxxxxxoi:::'` .;ioxo'
|
||||
'ooooxooi::'` .:iiixkxxo'
|
||||
'ooooi:'` `'';ioxxo'
|
||||
'i:'` '':io'
|
||||
'` `'
|
||||
EOF
|
||||
;;
|
||||
|
||||
@@ -5623,6 +5596,32 @@ ${c1} `.--::::::--.`
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Clear Linux OS"*)
|
||||
set_colors 4 3 7 6
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} BBB
|
||||
BBBBBBBBB
|
||||
BBBBBBBBBBBBBBB
|
||||
BBBBBBBBBBBBBBBBBBBB
|
||||
BBBBBBBBBBB BBB
|
||||
BBBBBBBB${c2}YYYYY
|
||||
${c1} BBBBBBBB${c2}YYYYYY
|
||||
${c1} BBBBBBBB${c2}YYYYYYY
|
||||
${c1} BBBBBBBBB${c2}YYYYY${c3}W
|
||||
${c4} GG${c1}BBBBBBBY${c2}YYYY${c3}WWW
|
||||
${c4} GGG${c1}BBBBBBB${c2}YY${c3}WWWWWWWW
|
||||
${c4} GGGGGG${c1}BBBBBB${c3}WWWWWWWW
|
||||
${c4} GGGGGGGG${c1}BBBB${c3}WWWWWWWW
|
||||
${c4}GGGGGGGGGGG${c1}BBB${c3}WWWWWWW
|
||||
${c4}GGGGGGGGGGGGG${c1}B${c3}WWWWWW
|
||||
${c4}GGGGGGGG${c3}WWWWWWWWWWW
|
||||
${c4}GG${c3}WWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWWWWWWWW
|
||||
WWWWWWWWWW
|
||||
WWW
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Clover"*)
|
||||
set_colors 2 6
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
@@ -6363,21 +6362,25 @@ WW W
|
||||
EOF
|
||||
;;
|
||||
|
||||
"januslinux"*)
|
||||
set_colors 7
|
||||
"januslinux"*|"janus"*)
|
||||
set_colors 4 7 4
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} ________________
|
||||
|\ \
|
||||
| \ \
|
||||
| \ \
|
||||
| \ ______________\
|
||||
| | |
|
||||
| | |
|
||||
| | |
|
||||
\ | januslinux |
|
||||
\ | |
|
||||
\ | |
|
||||
\|______________|
|
||||
${c1}oooooooooooooooooooooooooooooooo
|
||||
oooooooooooooooooooooooooooooooo
|
||||
oooooooooooooooooooooooooooooooo
|
||||
ooooooooooooo${c2}dOWWOd${c1}ooooooooooooo
|
||||
oooooooooood${c2}0WMMMMWkd${c1}ooooooooooo
|
||||
oooooooood${c2}0WMMMMMX0KN0d${c1}oooolllll
|
||||
ooooooo${c2}xKWMMMMWKxKWMMMWKx${c3}lllllll
|
||||
ooooo${c2}xXMMMMMW0doooOWMMMMMXx${c3}lllll
|
||||
ooooo${c2}xXMMMMMW0doloONMMMMMXx${c3}lllll
|
||||
ooooooo${c2}xKWMMMWXO0WMMMMMKx${c3}lllllll
|
||||
ooooooooo${c2}d0NX0KWMMMMW0d${c3}lllllllll
|
||||
oooooooooooo${c2}xWMMMMW0o${c3}llllllccccc
|
||||
oooooooooooll${c2}o0WW0o${c3}lllllcccccccc
|
||||
ooooooooooollll${c2}oo${c3}llllllccccccccc
|
||||
oooooooooollllllllllllcccccccccc
|
||||
oooooooooollllllllllllcccccccccc
|
||||
EOF
|
||||
;;
|
||||
|
||||
@@ -7201,7 +7204,7 @@ ${c1} `-|.' /_. ${c4}\_| ${c1} F
|
||||
|/`. `-. `._)
|
||||
/ .-.\\
|
||||
\\ ( `\\
|
||||
`.\
|
||||
`.\\
|
||||
EOF
|
||||
;;
|
||||
|
||||
@@ -7586,26 +7589,42 @@ s: yNm+` .smNd+.
|
||||
EOF
|
||||
;;
|
||||
|
||||
"postmarketos_small")
|
||||
set_colors 2 7
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} /\\
|
||||
/ \\
|
||||
/ \\
|
||||
\\__ \\
|
||||
/\\__ \\ _\\
|
||||
/ / \\/ __
|
||||
/ / ____/ \\
|
||||
/ \\ \\ \\
|
||||
/_____/ /________\\
|
||||
EOF
|
||||
;;
|
||||
|
||||
"PostMarketOS"*)
|
||||
set_colors 2 7
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c1} ss
|
||||
`hMMh`
|
||||
.dMMMMd.
|
||||
-NMMMMMMN-
|
||||
/MMMMMMMMMN/
|
||||
hMMMMMMMMMMMo
|
||||
y+`mMMmdNMMMMMMy
|
||||
`dMM-.-:- .mMMMMMMh`
|
||||
.mMMMMMMd` `dMMMMMMm.
|
||||
:NMMMMMMy yMMMMMMN:
|
||||
/MMMMMMMo oMMMmdmN/
|
||||
oMMMMMMM/ /MN.-/:-.
|
||||
`yMMMMMMN- -:.NMMMMy`
|
||||
`dMMMMMMM- -/////////////dMMMMMMd`
|
||||
-mMMMMMMMMN+`sMMMMMMMMMMMMMMMMMMMMm-
|
||||
:NMMMMMMMMMMM/ yMMMMMMMMMMMMMMMMMMMMN:
|
||||
+MMMMMMMMMMMh.:mMMMMMMMMMMMMMMMMMMMMMMM+
|
||||
${c1} /\\
|
||||
/ \\
|
||||
/ \\
|
||||
/ \\
|
||||
/ \\
|
||||
/ \\
|
||||
\\ \\
|
||||
/\\ \\____ \\
|
||||
/ \\____ \\ \\
|
||||
/ / \\ \\
|
||||
/ / \\ ___\\
|
||||
/ / \\ / ____
|
||||
/ / \\/ / \\
|
||||
/ / __________/ \\
|
||||
/ \\ \\ \\
|
||||
/ \\ \\ \\
|
||||
/ / / \\
|
||||
/___________/ /____________________\\
|
||||
EOF
|
||||
;;
|
||||
|
||||
@@ -7678,6 +7697,30 @@ ${c1} `..--..`
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Radix"*)
|
||||
set_colors 1 2
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c2} .:oyhdmNo
|
||||
`/yhyoosdms`
|
||||
-o+/ohmmho-
|
||||
..`.:/:-`
|
||||
`.--:::-.``${c1}
|
||||
.+ydNMMMMMMNmhs:`
|
||||
`omMMMMMMMMMMMMMMNh-
|
||||
oNMMMNmddhhyyhhhddmy.
|
||||
mMMMMNmmddhhysoo+/:-`
|
||||
yMMMMMMMMMMMMMMMMNNh.
|
||||
-dmmmmmNNMMMMMMMMMMs`
|
||||
-+oossyhmMMMMMMMMd-
|
||||
`sNMMMMMMMMMMMMMm:
|
||||
`yMMMMMMNmdhhhh:
|
||||
`sNMMMMMNmmho.
|
||||
`+mMMMMMMMy.
|
||||
.yNMMMm+`
|
||||
`:yd+.
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Raspbian"*)
|
||||
set_colors 2 1
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
|
14
neofetch.1
14
neofetch.1
@@ -1,5 +1,5 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8.
|
||||
.TH NEOFETCH "1" "January 2019" "Neofetch 6.0.0" "User Commands"
|
||||
.TH NEOFETCH "1" "January 2019" "Neofetch 6.0.1" "User Commands"
|
||||
.SH NAME
|
||||
Neofetch \- A fast, highly customizable system info script
|
||||
.SH SYNOPSIS
|
||||
@@ -40,8 +40,8 @@ For example: 'info "Memory" memory' would be '\-\-disable memory'
|
||||
.IP
|
||||
NOTE: You can supply multiple args. eg. 'neofetch \fB\-\-disable\fR cpu gpu'
|
||||
.TP
|
||||
\fB\-\-package_managers\fR on/off
|
||||
Hide/Show Package Manager names . (tiny, on, off)
|
||||
\fB\-\-package_managers\fR on/tiny/off
|
||||
Hide/Show Package Manager names . (on, tiny, off)
|
||||
.TP
|
||||
\fB\-\-os_arch\fR on/off
|
||||
Hide/Show OS architecture.
|
||||
@@ -79,8 +79,8 @@ NOTE: This only works on Linux and BSD.
|
||||
NOTE: For FreeBSD and NetBSD\-based systems, you need to enable
|
||||
coretemp kernel module. This only supports newer Intel processors.
|
||||
.TP
|
||||
\fB\-\-distro_shorthand\fR on/off
|
||||
Shorten the output of distro (tiny, on, off)
|
||||
\fB\-\-distro_shorthand\fR on/tiny/off
|
||||
Shorten the output of distro (on, tiny, off)
|
||||
.IP
|
||||
NOTE: This option won't work in Windows (Cygwin)
|
||||
.TP
|
||||
@@ -89,8 +89,8 @@ Shorten the output of kernel
|
||||
.IP
|
||||
NOTE: This option won't work in BSDs (except PacBSD and PC\-BSD)
|
||||
.TP
|
||||
\fB\-\-uptime_shorthand\fR on/off
|
||||
Shorten the output of uptime (tiny, on, off)
|
||||
\fB\-\-uptime_shorthand\fR on/tiny/off
|
||||
Shorten the output of uptime (on, tiny, off)
|
||||
.TP
|
||||
\fB\-\-refresh_rate\fR on/off
|
||||
Whether to display the refresh rate of each monitor
|
||||
|
Reference in New Issue
Block a user