mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Compare commits
96 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5405baec6 | ||
|
|
a2b7de8e6a | ||
|
|
52ea4774a3 | ||
|
|
da37135ef0 | ||
|
|
6afceae066 | ||
|
|
2bbb46fedb | ||
|
|
10da8b3671 | ||
|
|
71e22d842e | ||
|
|
fcb302f649 | ||
|
|
3da0b5cfb4 | ||
|
|
e85a6a03f1 | ||
|
|
90ddcbd3e1 | ||
|
|
92c3ad7493 | ||
|
|
ed0b0a9746 | ||
|
|
0168516a2c | ||
|
|
801760a01b | ||
|
|
49c6119de5 | ||
|
|
6cbd5c4114 | ||
|
|
9605ae9c04 | ||
|
|
2f5b84afbd | ||
|
|
a9ec78656b | ||
|
|
c5da0db6f6 | ||
|
|
936b3b6b73 | ||
|
|
1bca06c0db | ||
|
|
fb23cc69d6 | ||
|
|
9d1222cbc2 | ||
|
|
fc12e55052 | ||
|
|
95a8ecfa71 | ||
|
|
afc29ac448 | ||
|
|
caea0f059c | ||
|
|
a37ee9a833 | ||
|
|
6bb5a78f92 | ||
|
|
19d2f4b2ca | ||
|
|
3aee64abaf | ||
|
|
1278844d87 | ||
|
|
380f889f2d | ||
|
|
4e33cf2f61 | ||
|
|
0800cf0dfd | ||
|
|
f5186ef32d | ||
|
|
21f7203533 | ||
|
|
02da9487fa | ||
|
|
6f17a2e367 | ||
|
|
382a1d2651 | ||
|
|
ff06200e51 | ||
|
|
565f714298 | ||
|
|
495a9fefbf | ||
|
|
0d50468d19 | ||
|
|
2c4fb88139 | ||
|
|
e07f545c26 | ||
|
|
9ba1bbaafe | ||
|
|
e7a3f5cba2 | ||
|
|
3272dce4ed | ||
|
|
4d129b50c1 | ||
|
|
b32f4e4d1a | ||
|
|
926fc4edde | ||
|
|
754ffe2fae | ||
|
|
9b29d3f669 | ||
|
|
17f2f5b2a6 | ||
|
|
8ee4710225 | ||
|
|
b8eb8fbaa7 | ||
|
|
3b5ec364e6 | ||
|
|
6c38b81fe1 | ||
|
|
6775a652d3 | ||
|
|
5d33b8d99d | ||
|
|
614fad0421 | ||
|
|
43c439853c | ||
|
|
2fef4d9849 | ||
|
|
78f355ba6d | ||
|
|
085bba208a | ||
|
|
9fe7ec4ccf | ||
|
|
2cc7b84189 | ||
|
|
2afc5a27af | ||
|
|
f960594cd4 | ||
|
|
71df4ffd3b | ||
|
|
1332874265 | ||
|
|
5037d312fd | ||
|
|
22df76c3b6 | ||
|
|
497b782ea1 | ||
|
|
c99fc64b67 | ||
|
|
d43da37d00 | ||
|
|
911c70adc3 | ||
|
|
f70390ede0 | ||
|
|
c651f5e068 | ||
|
|
288036eb26 | ||
|
|
aae3271422 | ||
|
|
61ee751147 | ||
|
|
50804a6877 | ||
|
|
ef94cc6764 | ||
|
|
31af4fe003 | ||
|
|
1da3523e9e | ||
|
|
a596b6467f | ||
|
|
c152801a8a | ||
|
|
97b4f04d33 | ||
|
|
cf07cb0c35 | ||
|
|
af455b2967 | ||
|
|
bdd21fa8a7 |
42
CHANGELOG.md
42
CHANGELOG.md
@@ -7,9 +7,43 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
**Contributors**
|
||||||
|
|
||||||
|
- [**@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)
|
||||||
|
|
||||||
|
**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)
|
||||||
|
- **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)
|
||||||
|
- **WM** [OpenBSD]: Added a new `ps_flags` to correctly detect non-EWMH WMs. [**@julianaito**](https://github.com/julianaito)
|
||||||
|
- **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)
|
||||||
|
|
||||||
|
**ASCII**
|
||||||
|
|
||||||
|
- Fixed a bug where ASCII logo changes the terminal foreground color. [**@plgruener**](https://github.com/plgruener)
|
||||||
|
- Do not parse file as ASCII if the source is an image file.
|
||||||
|
|
||||||
|
**Image**
|
||||||
|
|
||||||
|
- **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)
|
||||||
|
|
||||||
|
## [5.0.0] - 2018-06-18
|
||||||
|
|
||||||
<img src="https://i.imgur.com/ZQI2EYz.png" alt="logo" height="100px">
|
<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**
|
**Contributors**
|
||||||
|
|
||||||
@@ -89,11 +123,12 @@ See: https://github.com/dylanaraps/neofetch/issues/1001
|
|||||||
|
|
||||||
## [4.0.2] - 2018-05-19
|
## [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] Fixed `/dev/stdin` error.
|
||||||
- [config] Added `--print_config` to display the default config file.
|
- [config] Added `--print_config` to display the default config file.
|
||||||
- [macOS] Fixed xquartz issue.
|
- [macOS] Fixed xquartz issue.
|
||||||
|
|
||||||
|
|
||||||
## [4.0.1] - 2018-05-18
|
## [4.0.1] - 2018-05-18
|
||||||
|
|
||||||
### Note: This release is only required for those running `bash <3.3`.
|
### Note: This release is only required for those running `bash <3.3`.
|
||||||
@@ -2756,7 +2791,8 @@ Changelog:
|
|||||||
Let me know if you're having issues.
|
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.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.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
|
[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="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="./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://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://repology.org/metapackage/neofetch"><img src="https://repology.org/badge/tiny-repos/neofetch.svg" alt="Packaging status"></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="#donate"><img src="https://img.shields.io/badge/donate-donate-yellow.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<img src="https://i.imgur.com/GFmC5Ad.png" alt="neofetch" align="right" height="240px">
|
<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.
|
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>
|
||||||
|
|
||||||
|
|||||||
460
neofetch
460
neofetch
@@ -28,12 +28,12 @@
|
|||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
version="5.0.0"
|
version="5.0.1"
|
||||||
|
|
||||||
bash_version="${BASH_VERSION/.*}"
|
bash_version="${BASH_VERSION/.*}"
|
||||||
sys_locale="${LANG:-C}"
|
sys_locale="${LANG:-C}"
|
||||||
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
|
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
|
||||||
PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec:${PATH}"
|
PATH="${PATH}:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec"
|
||||||
reset='\e[0m'
|
reset='\e[0m'
|
||||||
shopt -s nocasematch
|
shopt -s nocasematch
|
||||||
|
|
||||||
@@ -201,7 +201,7 @@ speed_type="bios_limit"
|
|||||||
#
|
#
|
||||||
# Default: 'off'
|
# Default: 'off'
|
||||||
# Values: 'on', '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
|
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
@@ -445,7 +445,6 @@ disk_subtitle="mount"
|
|||||||
# sayonara
|
# sayonara
|
||||||
# smplayer
|
# smplayer
|
||||||
# spotify
|
# spotify
|
||||||
# Spotify
|
|
||||||
# tomahawk
|
# tomahawk
|
||||||
# vlc
|
# vlc
|
||||||
# xmms2d
|
# xmms2d
|
||||||
@@ -526,6 +525,18 @@ underline_enabled="on"
|
|||||||
underline_char="-"
|
underline_char="-"
|
||||||
|
|
||||||
|
|
||||||
|
# Info Separator
|
||||||
|
# Replace the default separator with the specified string.
|
||||||
|
#
|
||||||
|
# Default: ':'
|
||||||
|
# Flag: --separator
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# separator="->": 'Shell-> bash'
|
||||||
|
# separator=" =": 'WM = dwm'
|
||||||
|
separator=":"
|
||||||
|
|
||||||
|
|
||||||
# Color Blocks
|
# Color Blocks
|
||||||
|
|
||||||
|
|
||||||
@@ -638,7 +649,7 @@ disk_display="off"
|
|||||||
# Image backend.
|
# Image backend.
|
||||||
#
|
#
|
||||||
# Default: 'ascii'
|
# Default: 'ascii'
|
||||||
# Values: 'ascii', 'caca', 'jp2a', 'iterm2', 'off', 'termpix', 'pixterm', 'tycat', 'w3m'
|
# Values: 'ascii', 'caca', 'jp2a', 'iterm2', 'off', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
||||||
# Flag: --backend
|
# Flag: --backend
|
||||||
image_backend="ascii"
|
image_backend="ascii"
|
||||||
|
|
||||||
@@ -930,7 +941,7 @@ get_distro() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
distro="$(trim_quotes "$distro")"
|
distro="$(trim_quotes "$distro")"
|
||||||
distro="${distro/'NAME='}"
|
distro="${distro/NAME=}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
@@ -978,8 +989,8 @@ get_distro() {
|
|||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") distro="$(awk 'NR==1{print $1 " " $3;}' /etc/release)" ;;
|
"on" | "tiny") distro="$(awk 'NR==1 {print $1,$3}' /etc/release)" ;;
|
||||||
*) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;;
|
*) distro="$(awk 'NR==1 {print $1,$2,$3}' /etc/release)" ;;
|
||||||
esac
|
esac
|
||||||
distro="${distro/\(*}"
|
distro="${distro/\(*}"
|
||||||
;;
|
;;
|
||||||
@@ -1040,7 +1051,7 @@ get_model() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if [[ "$(kextstat | grep -F "FakeSMC")" != "" ]]; then
|
if [[ "$(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC")" != "" ]]; then
|
||||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
else
|
else
|
||||||
model="$(sysctl -n hw.model)"
|
model="$(sysctl -n hw.model)"
|
||||||
@@ -1137,6 +1148,7 @@ get_model() {
|
|||||||
|
|
||||||
case "$model" in
|
case "$model" in
|
||||||
"Standard PC"*) model="KVM/QEMU (${model})" ;;
|
"Standard PC"*) model="KVM/QEMU (${model})" ;;
|
||||||
|
"OpenBSD"*) model="vmm ($model)" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1184,7 +1196,7 @@ get_uptime() {
|
|||||||
|
|
||||||
"Mac OS X" | "iPhone OS" | "BSD" | "FreeMiNT")
|
"Mac OS X" | "iPhone OS" | "BSD" | "FreeMiNT")
|
||||||
boot="$(sysctl -n kern.boottime)"
|
boot="$(sysctl -n kern.boottime)"
|
||||||
boot="${boot/'{ sec = '}"
|
boot="${boot/\{ sec = }"
|
||||||
boot="${boot/,*}"
|
boot="${boot/,*}"
|
||||||
|
|
||||||
# Get current date in seconds.
|
# Get current date in seconds.
|
||||||
@@ -1258,6 +1270,12 @@ get_packages() {
|
|||||||
pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${manager}, "; }; }
|
pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${manager}, "; }; }
|
||||||
tot() { IFS=$'\n' read -d "" -ra pkgs < <("$@");((packages+="${#pkgs[@]}"));pac "${#pkgs[@]}"; }
|
tot() { IFS=$'\n' read -d "" -ra pkgs < <("$@");((packages+="${#pkgs[@]}"));pac "${#pkgs[@]}"; }
|
||||||
|
|
||||||
|
[[ -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[@]}")); pac "${#pkgs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "BSD" | "iPhone OS" | "Solaris")
|
"Linux" | "BSD" | "iPhone OS" | "Solaris")
|
||||||
# Package Manager Programs.
|
# Package Manager Programs.
|
||||||
@@ -1275,6 +1293,7 @@ get_packages() {
|
|||||||
has "sorcery" && tot gaze installed
|
has "sorcery" && tot gaze installed
|
||||||
has "alps" && tot alps showinstalled
|
has "alps" && tot alps showinstalled
|
||||||
has "butch" && tot butch list
|
has "butch" && tot butch list
|
||||||
|
has "pkginfo" && tot pkginfo -i
|
||||||
|
|
||||||
# Counting files/dirs.
|
# Counting files/dirs.
|
||||||
has "emerge" && dir /var/db/pkg/*/*/
|
has "emerge" && dir /var/db/pkg/*/*/
|
||||||
@@ -1292,7 +1311,6 @@ get_packages() {
|
|||||||
|
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"FreeBSD") has "pkg" && tot pkg info ;;
|
"FreeBSD") has "pkg" && tot pkg info ;;
|
||||||
"SunOS") has "pkginfo" && tot pkginfo -i ;;
|
|
||||||
*)
|
*)
|
||||||
has "pkg" && dir /var/db/pkg/*
|
has "pkg" && dir /var/db/pkg/*
|
||||||
|
|
||||||
@@ -1303,6 +1321,8 @@ get_packages() {
|
|||||||
|
|
||||||
# List these last as they accompany regular package managers.
|
# List these last as they accompany regular package managers.
|
||||||
has "flatpak" && tot flatpak list
|
has "flatpak" && tot flatpak list
|
||||||
|
has "spm" && tot spm list -i
|
||||||
|
has "puyo" && dir ~/.puyo/installed
|
||||||
|
|
||||||
# Snap hangs if the command is run without the daemon running.
|
# Snap hangs if the command is run without the daemon running.
|
||||||
# Only run snap if the daemon is also running.
|
# Only run snap if the daemon is also running.
|
||||||
@@ -1313,6 +1333,7 @@ get_packages() {
|
|||||||
has "port" && tot port installed && ((packages-=1))
|
has "port" && tot port installed && ((packages-=1))
|
||||||
has "brew" && dir /usr/local/Cellar/*
|
has "brew" && dir /usr/local/Cellar/*
|
||||||
has "pkgin" && tot pkgin list
|
has "pkgin" && tot pkgin list
|
||||||
|
has "nix-env" && dir /nix/store/*/
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"AIX"| "FreeMiNT")
|
"AIX"| "FreeMiNT")
|
||||||
@@ -1367,7 +1388,7 @@ get_shell() {
|
|||||||
"sh" | "ash" | "dash") ;;
|
"sh" | "ash" | "dash") ;;
|
||||||
|
|
||||||
"mksh" | "ksh")
|
"mksh" | "ksh")
|
||||||
shell+="$("$SHELL" -c "printf %s \$KSH_VERSION")"
|
shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
|
||||||
shell="${shell/ * KSH}"
|
shell="${shell/ * KSH}"
|
||||||
shell="${shell/version}"
|
shell="${shell/version}"
|
||||||
;;
|
;;
|
||||||
@@ -1419,7 +1440,7 @@ get_de() {
|
|||||||
((wm_run != 1)) && get_wm
|
((wm_run != 1)) && get_wm
|
||||||
|
|
||||||
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
||||||
de="${XDG_CURRENT_DESKTOP/'X-'}"
|
de="${XDG_CURRENT_DESKTOP/X\-}"
|
||||||
de="${de/Budgie:GNOME/Budgie}"
|
de="${de/Budgie:GNOME/Budgie}"
|
||||||
de="${de/:Unity7:ubuntu}"
|
de="${de/:Unity7:ubuntu}"
|
||||||
|
|
||||||
@@ -1445,7 +1466,7 @@ get_de() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Fallback to using xprop.
|
# 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/')"
|
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
||||||
|
|
||||||
# Format strings.
|
# Format strings.
|
||||||
@@ -1474,8 +1495,13 @@ get_wm() {
|
|||||||
# If function was run, stop here.
|
# If function was run, stop here.
|
||||||
((wm_run == 1)) && return
|
((wm_run == 1)) && return
|
||||||
|
|
||||||
|
case "$uname" in
|
||||||
|
*"OpenBSD"*) ps_flags=(x -c) ;;
|
||||||
|
*) ps_flags=(-e) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [[ "$WAYLAND_DISPLAY" ]]; then
|
if [[ "$WAYLAND_DISPLAY" ]]; then
|
||||||
wm="$(ps -e | grep -m 1 -o -F \
|
wm="$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
|
||||||
-e "arcan" \
|
-e "arcan" \
|
||||||
-e "asc" \
|
-e "asc" \
|
||||||
-e "clayland" \
|
-e "clayland" \
|
||||||
@@ -1503,20 +1529,22 @@ get_wm() {
|
|||||||
-e "weston")"
|
-e "weston")"
|
||||||
|
|
||||||
elif [[ "$DISPLAY" && "$os" != "Mac OS X" && "$os" != "FreeMiNT" ]]; then
|
elif [[ "$DISPLAY" && "$os" != "Mac OS X" && "$os" != "FreeMiNT" ]]; then
|
||||||
|
if type -p xprop &>/dev/null; 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/*WM_NAME = }"
|
wm="${wm/*WM_NAME = }"
|
||||||
wm="${wm/\"}"
|
wm="${wm/\"}"
|
||||||
wm="${wm/\"*}"
|
wm="${wm/\"*}"
|
||||||
|
fi
|
||||||
|
|
||||||
# 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 non-EWMH WMs.
|
# Fallback for non-EWMH WMs.
|
||||||
[[ -z "$wm" ]] && \
|
[[ -z "$wm" ]] && \
|
||||||
wm="$(ps -e | grep -m 1 -o -F \
|
wm="$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
|
||||||
-e "catwm" \
|
-e "catwm" \
|
||||||
|
-e "fvwm" \
|
||||||
-e "dwm" \
|
-e "dwm" \
|
||||||
-e "2bwm" \
|
-e "2bwm" \
|
||||||
-e "monsterwm" \
|
-e "monsterwm" \
|
||||||
@@ -1680,7 +1708,7 @@ get_wm_theme() {
|
|||||||
wm_theme="$(awk '/(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' "$kdebugrc")"
|
wm_theme="$(awk '/(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' "$kdebugrc")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wm_theme="${wm_theme/'theme='}"
|
wm_theme="${wm_theme/theme=}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Quartz Compositor")
|
"Quartz Compositor")
|
||||||
@@ -1711,7 +1739,7 @@ get_wm_theme() {
|
|||||||
path="${path//\\/\/}"
|
path="${path//\\/\/}"
|
||||||
|
|
||||||
wm_theme="$(grep '^session\.styleFile:' "${path/\.exe/.rc}")"
|
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##*\\}"
|
||||||
wm_theme="${wm_theme%.*}"
|
wm_theme="${wm_theme%.*}"
|
||||||
;;
|
;;
|
||||||
@@ -1721,11 +1749,6 @@ get_wm_theme() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_cpu() {
|
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
|
case "$os" in
|
||||||
"Linux" | "MINIX" | "Windows")
|
"Linux" | "MINIX" | "Windows")
|
||||||
# Get CPU name.
|
# Get CPU name.
|
||||||
@@ -2059,11 +2082,10 @@ get_gpu() {
|
|||||||
brand="${brand:-${gpu/*AMD*/AMD}}"
|
brand="${brand:-${gpu/*AMD*/AMD}}"
|
||||||
brand="${brand:-${gpu/*ATI*/ATi}}"
|
brand="${brand:-${gpu/*ATI*/ATi}}"
|
||||||
|
|
||||||
gpu="${gpu/'[AMD/ATI]' }"
|
gpu="${gpu/\[AMD\/ATI\] }"
|
||||||
gpu="${gpu/'[AMD]' }"
|
gpu="${gpu/\[AMD\] }"
|
||||||
gpu="${gpu/OEM }"
|
gpu="${gpu/OEM }"
|
||||||
gpu="${gpu/Advanced Micro Devices, Inc.}"
|
gpu="${gpu/Advanced Micro Devices, Inc.}"
|
||||||
gpu="${gpu/ \/ *}"
|
|
||||||
gpu="${gpu/*\[}"
|
gpu="${gpu/*\[}"
|
||||||
gpu="${gpu/\]*}"
|
gpu="${gpu/\]*}"
|
||||||
gpu="$brand $gpu"
|
gpu="$brand $gpu"
|
||||||
@@ -2077,10 +2099,11 @@ get_gpu() {
|
|||||||
|
|
||||||
*"intel"*)
|
*"intel"*)
|
||||||
gpu="${gpu/*Intel/Intel}"
|
gpu="${gpu/*Intel/Intel}"
|
||||||
gpu="${gpu/'(R)'}"
|
gpu="${gpu/\(R\)}"
|
||||||
gpu="${gpu/'Corporation'}"
|
gpu="${gpu/Corporation}"
|
||||||
gpu="${gpu/ \(*}"
|
gpu="${gpu/ \(*}"
|
||||||
gpu="${gpu/Integrated Graphics Controller}"
|
gpu="${gpu/Integrated Graphics Controller}"
|
||||||
|
gpu="${gpu/*Xeon*/Intel HD Graphics}"
|
||||||
|
|
||||||
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
||||||
;;
|
;;
|
||||||
@@ -2109,7 +2132,7 @@ get_gpu() {
|
|||||||
else
|
else
|
||||||
gpu="$(system_profiler SPDisplaysDataType |\
|
gpu="$(system_profiler SPDisplaysDataType |\
|
||||||
awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
||||||
gpu="${gpu//'/ $'}"
|
gpu="${gpu//\/ \$}"
|
||||||
gpu="${gpu%,*}"
|
gpu="${gpu%,*}"
|
||||||
|
|
||||||
cache "gpu" "$gpu"
|
cache "gpu" "$gpu"
|
||||||
@@ -2169,7 +2192,7 @@ get_gpu() {
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
gpu="$(glxinfo | grep -F 'OpenGL renderer string')"
|
gpu="$(glxinfo | grep -F 'OpenGL renderer string')"
|
||||||
gpu="${gpu/'OpenGL renderer string: '}"
|
gpu="${gpu/OpenGL renderer string: }"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@@ -2252,8 +2275,11 @@ get_memory() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
mem_total="$(prtconf | awk '/Memory/ {print $3}')"
|
hw_pagesize="$(pagesize)"
|
||||||
mem_free="$(($(vmstat | awk 'NR==3{printf $5}') / 1024))"
|
pages_total=$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')
|
||||||
|
pages_free=$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')
|
||||||
|
mem_total="$((pages_total * hw_pagesize / 1024 / 1024))"
|
||||||
|
mem_free="$((pages_free * hw_pagesize / 1024 / 1024))"
|
||||||
mem_used="$((mem_total - mem_free))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -2312,7 +2338,7 @@ get_song() {
|
|||||||
"deadbeef"
|
"deadbeef"
|
||||||
"deepin-music"
|
"deepin-music"
|
||||||
"dragon"
|
"dragon"
|
||||||
"elise"
|
"elisa"
|
||||||
"exaile"
|
"exaile"
|
||||||
"gnome-music"
|
"gnome-music"
|
||||||
"gmusicbrowser"
|
"gmusicbrowser"
|
||||||
@@ -2341,7 +2367,7 @@ get_song() {
|
|||||||
|
|
||||||
printf -v players "|%s" "${players[@]}"
|
printf -v players "|%s" "${players[@]}"
|
||||||
player="$(ps aux | awk -v pattern="(${players:1})" \
|
player="$(ps aux | awk -v pattern="(${players:1})" \
|
||||||
'!/ awk / && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
'!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
||||||
|
|
||||||
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
||||||
player="$music_player"
|
player="$music_player"
|
||||||
@@ -2353,8 +2379,8 @@ get_song() {
|
|||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2."${1}" /org/mpris/MediaPlayer2 \
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2."${1}" /org/mpris/MediaPlayer2 \
|
||||||
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
|
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
|
||||||
string:'Metadata' |\
|
string:'Metadata' |\
|
||||||
awk -F '"' 'BEGIN {RS=" entry"}; /xesam:artist/ {a = $4} /xesam:album/ {b = $4}
|
awk -F '"' 'BEGIN {RS=" entry"}; /"xesam:artist"/ {a = $4} /"xesam:album"/ {b = $4}
|
||||||
/xesam:title/ {t = $4} END {print a " \n " b " \n " t}'
|
/"xesam:title"/ {t = $4} END {print a "\n" b "\n" t}'
|
||||||
)"
|
)"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2362,7 +2388,6 @@ get_song() {
|
|||||||
"mpd"*|"mopidy"*) song="$(mpc -f '%artist%\n%album%\n%title%' current "${mpc_args[@]}")" ;;
|
"mpd"*|"mopidy"*) song="$(mpc -f '%artist%\n%album%\n%title%' current "${mpc_args[@]}")" ;;
|
||||||
"mocp"*) song="$(mocp -Q '%artist\n%album\n%song')" ;;
|
"mocp"*) song="$(mocp -Q '%artist\n%album\n%song')" ;;
|
||||||
"google play"*) song="$(gpmdp-remote current)" ;;
|
"google play"*) song="$(gpmdp-remote current)" ;;
|
||||||
"rhythmbox"*) song="$(rhythmbox-client --print-playing-format '%ta \n %at \n %tt')" ;;
|
|
||||||
"deadbeef"*) song="$(deadbeef --nowplaying-tf '%artist%\n%album%\n%title%')" ;;
|
"deadbeef"*) song="$(deadbeef --nowplaying-tf '%artist%\n%album%\n%title%')" ;;
|
||||||
"xmms2d"*) song="$(xmms2 current -f "\${artist}"$'\n'"\${album}"$'\n'"\${title}")" ;;
|
"xmms2d"*) song="$(xmms2 current -f "\${artist}"$'\n'"\${album}"$'\n'"\${title}")" ;;
|
||||||
"qmmp"*) song="$(qmmp --nowplaying '%p\n%a\n%t')" ;;
|
"qmmp"*) song="$(qmmp --nowplaying '%p\n%a\n%t')" ;;
|
||||||
@@ -2384,6 +2409,7 @@ get_song() {
|
|||||||
"amarok"*) get_song_dbus "amarok" ;;
|
"amarok"*) get_song_dbus "amarok" ;;
|
||||||
"dragon"*) get_song_dbus "dragonplayer" ;;
|
"dragon"*) get_song_dbus "dragonplayer" ;;
|
||||||
"smplayer"*) get_song_dbus "smplayer" ;;
|
"smplayer"*) get_song_dbus "smplayer" ;;
|
||||||
|
"rhythmbox"*) get_song_dbus "rhythmbox" ;;
|
||||||
|
|
||||||
"cmus"*)
|
"cmus"*)
|
||||||
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
|
||||||
@@ -2433,26 +2459,15 @@ get_song() {
|
|||||||
"quodlibet"*)
|
"quodlibet"*)
|
||||||
song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet \
|
song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet \
|
||||||
/net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\
|
/net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\
|
||||||
awk -F'"' '/artist/ {getline; a=$2} /album/ {getline; b=$2}
|
awk -F'"' 'BEGIN {RS=" entry"}; /"artist"/ {a=$4} /"album"/ {b=$4}
|
||||||
/title/ {getline; t=$2} END {print a " \n " b " \n " t}')"
|
/"title"/ {t=$4} END {print a "\n" b "\n" t}')"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"pogo"*)
|
"pogo"*)
|
||||||
song="$(dbus-send --print-reply --dest=org.mpris.pogo /Player \
|
song="$(dbus-send --print-reply --dest=org.mpris.pogo /Player \
|
||||||
org.freedesktop.MediaPlayer.GetMetadata |
|
org.freedesktop.MediaPlayer.GetMetadata |
|
||||||
awk -F'"' '/string "artist"/ {
|
awk -F'"' 'BEGIN {RS=" entry"}; /"artist"/ {a=$4} /"album"/ {b=$4}
|
||||||
getline;
|
/"title"/ {t=$4} END {print a "\n" b "\n" t}')"
|
||||||
a=$2
|
|
||||||
}
|
|
||||||
/string "album"/ {
|
|
||||||
getline;
|
|
||||||
b=$2
|
|
||||||
}
|
|
||||||
/string "title"/ {
|
|
||||||
getline;
|
|
||||||
t=$2
|
|
||||||
}
|
|
||||||
END {print a " \n " b " \n " t}')"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" ;;
|
*) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" ;;
|
||||||
@@ -2754,14 +2769,14 @@ get_term() {
|
|||||||
term="$(tty)"
|
term="$(tty)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"ruby"|"1"|"systemd"|"sshd"*|"python"*|"USER"*"PID"*|"kdeinit"*|"launchd"*)
|
"ruby"|"1"|"tmux"*|"systemd"|"sshd"*|"python"*|"USER"*"PID"*|"kdeinit"*|"launchd"*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
|
"urxvtd") term="urxvt" ;;
|
||||||
*"nvim") term="Neovim Terminal" ;;
|
*"nvim") term="Neovim Terminal" ;;
|
||||||
*"NeoVimServer"*) term="VimR Terminal" ;;
|
*"NeoVimServer"*) term="VimR Terminal" ;;
|
||||||
*"tmux"*) term="tmux" ;;
|
|
||||||
*) term="${name##*/}" ;;
|
*) term="${name##*/}" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -2842,13 +2857,13 @@ END
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"deepin-terminal"*)
|
"deepin-terminal"*)
|
||||||
term_font="$(awk -F '=' '/font=/ {a=$2} /font_size/ {b=$2} END {print a " " b}' \
|
term_font="$(awk -F '=' '/font=/ {a=$2} /font_size/ {b=$2} END {print a,b}' \
|
||||||
"${XDG_CONFIG_HOME}/deepin/deepin-terminal/config.conf")"
|
"${XDG_CONFIG_HOME}/deepin/deepin-terminal/config.conf")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"GNUstep_Terminal")
|
"GNUstep_Terminal")
|
||||||
term_font="$(awk -F '>|<' '/>TerminalFont</ {getline; f=$3}
|
term_font="$(awk -F '>|<' '/>TerminalFont</ {getline; f=$3}
|
||||||
/>TerminalFontSize</ {getline; s=$3} END {print f " " s}' \
|
/>TerminalFontSize</ {getline; s=$3} END {print f,s}' \
|
||||||
"${HOME}/GNUstep/Defaults/Terminal.plist")"
|
"${HOME}/GNUstep/Defaults/Terminal.plist")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -2872,10 +2887,10 @@ END
|
|||||||
/^([[:space:]]*|[^#_])font_size[[:space:]]+/ {
|
/^([[:space:]]*|[^#_])font_size[[:space:]]+/ {
|
||||||
size = $2
|
size = $2
|
||||||
}
|
}
|
||||||
END { print font " " size}' "${confs[0]}")"
|
END {print font,size}' "${confs[0]}")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"konsole"*)
|
"konsole" | "yakuake")
|
||||||
# Get Process ID of current konsole window / tab
|
# Get Process ID of current konsole window / tab
|
||||||
child="$(get_ppid "$$")"
|
child="$(get_ppid "$$")"
|
||||||
|
|
||||||
@@ -2899,7 +2914,7 @@ END
|
|||||||
profile_filename="${profile_filename/$'\n'*}"
|
profile_filename="${profile_filename/$'\n'*}"
|
||||||
|
|
||||||
[[ "$profile_filename" ]] && \
|
[[ "$profile_filename" ]] && \
|
||||||
term_font="$(awk -F '=|,' '/Font=/ {print $2 " " $3}' "$profile_filename")"
|
term_font="$(awk -F '=|,' '/Font=/ {print $2,$3}' "$profile_filename")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"lxterminal"*)
|
"lxterminal"*)
|
||||||
@@ -2958,7 +2973,7 @@ END
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"qterminal")
|
"qterminal")
|
||||||
term_font="$(awk -F '=' '/fontFamily=/ {a=$2} /fontSize=/ {b=$2} END {print a " " b}' \
|
term_font="$(awk -F '=' '/fontFamily=/ {a=$2} /fontSize=/ {b=$2} END {print a,b}' \
|
||||||
"${XDG_CONFIG_HOME}/qterminal.org/qterminal.ini")"
|
"${XDG_CONFIG_HOME}/qterminal.org/qterminal.ini")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -3019,7 +3034,7 @@ END
|
|||||||
|
|
||||||
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
||||||
xrdb="$(xrdb -query)"
|
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:"}"
|
term_font="${term_font/*".font:"}"
|
||||||
term_font="${term_font/*"*.font:"}"
|
term_font="${term_font/*"*.font:"}"
|
||||||
@@ -3073,6 +3088,7 @@ get_disk() {
|
|||||||
case "$df_version" in
|
case "$df_version" in
|
||||||
*"IMitv"*) df_flags=(-P -g) ;; # AIX
|
*"IMitv"*) df_flags=(-P -g) ;; # AIX
|
||||||
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
|
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
|
||||||
|
*"hiklnP"*) df_flags=(-h) ;; # OpenBSD
|
||||||
|
|
||||||
*"Tracker"*) # Haiku
|
*"Tracker"*) # Haiku
|
||||||
err "Your version of df cannot be used due to the non-standard flags"
|
err "Your version of df cannot be used due to the non-standard flags"
|
||||||
@@ -3096,7 +3112,7 @@ get_disk() {
|
|||||||
for disk in "${disks[@]}"; do
|
for disk in "${disks[@]}"; do
|
||||||
# Create a second array and make each element split at whitespace this time.
|
# Create a second array and make each element split at whitespace this time.
|
||||||
IFS=" " read -ra disk_info <<< "$disk"
|
IFS=" " read -ra disk_info <<< "$disk"
|
||||||
disk_perc="${disk_info[4]/'%'}"
|
disk_perc="${disk_info[4]/\%}"
|
||||||
|
|
||||||
case "$df_version" in
|
case "$df_version" in
|
||||||
*"befhikm"*)
|
*"befhikm"*)
|
||||||
@@ -3179,12 +3195,19 @@ get_battery() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD"* | "Bitrig"*)
|
"OpenBSD"* | "Bitrig"*)
|
||||||
battery0full="$(sysctl -n hw.sensors.acpibat0.watthour0)"
|
battery0full="$(sysctl -n hw.sensors.acpibat0.watthour0\
|
||||||
battery0full="${battery0full/ Wh*}"
|
hw.sensors.acpibat0.amphour0)"
|
||||||
|
battery0full="${battery0full%% *}"
|
||||||
|
|
||||||
battery0now="$(sysctl -n hw.sensors.acpibat0.watthour3)"
|
battery0now="$(sysctl -n hw.sensors.acpibat0.watthour3\
|
||||||
battery0now="${battery0now/ Wh*}"
|
hw.sensors.acpibat0.amphour3)"
|
||||||
|
battery0now="${battery0now%% *}"
|
||||||
|
|
||||||
|
state="$(sysctl -n hw.sensors.acpibat0.raw0)"
|
||||||
|
state="${state##? (battery }"
|
||||||
|
state="${state%)*}"
|
||||||
|
|
||||||
|
[[ "${state}" == "charging" ]] && battery_state="charging"
|
||||||
[[ "$battery0full" ]] && \
|
[[ "$battery0full" ]] && \
|
||||||
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
|
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
|
||||||
;;
|
;;
|
||||||
@@ -3213,9 +3236,9 @@ get_battery() {
|
|||||||
[[ "$battery_state" ]] && battery+=" Charging"
|
[[ "$battery_state" ]] && battery+=" Charging"
|
||||||
|
|
||||||
case "$battery_display" in
|
case "$battery_display" in
|
||||||
"bar") battery="$(bar "${battery/'%'*}" 100)" ;;
|
"bar") battery="$(bar "${battery/\%*}" 100)" ;;
|
||||||
"infobar") battery="${battery} $(bar "${battery/'%'*}" 100)" ;;
|
"infobar") battery="${battery} $(bar "${battery/\%*}" 100)" ;;
|
||||||
"barinfo") battery="$(bar "${battery/'%'*}" 100)${info_color} ${battery}" ;;
|
"barinfo") battery="$(bar "${battery/\%*}" 100)${info_color} ${battery}" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3243,7 +3266,7 @@ get_local_ip() {
|
|||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
local_ip="$(ifconfig | awk -F ': ' '/Bcast/ {print $2}')"
|
local_ip="$(ifconfig | awk -F ': ' '/Bcast/ {print $2}')"
|
||||||
local_ip="${local_ip/', Bcast'}"
|
local_ip="${local_ip/, Bcast}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -3389,7 +3412,7 @@ image_backend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_ascii() {
|
get_ascii() {
|
||||||
if [[ -f "$image_source" ]]; then
|
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||||
ascii_data="$(< "$image_source")"
|
ascii_data="$(< "$image_source")"
|
||||||
else
|
else
|
||||||
err "Ascii: Ascii file not found, using distro ascii."
|
err "Ascii: Ascii file not found, using distro ascii."
|
||||||
@@ -3400,8 +3423,7 @@ get_ascii() {
|
|||||||
|
|
||||||
# Calculate size of ascii file in line length / line count.
|
# Calculate size of ascii file in line length / line count.
|
||||||
while IFS=$'\n' read -r line; do
|
while IFS=$'\n' read -r line; do
|
||||||
((${#line} > ascii_length)) && ascii_length="${#line}"
|
((++lines,${#line}>ascii_length)) && ascii_length="${#line}"
|
||||||
((++lines))
|
|
||||||
done <<< "${ascii_data//\$\{??\}}"
|
done <<< "${ascii_data//\$\{??\}}"
|
||||||
|
|
||||||
# Colors.
|
# Colors.
|
||||||
@@ -3413,7 +3435,7 @@ get_ascii() {
|
|||||||
ascii_data="${ascii_data//\$\{c6\}/$c6}"
|
ascii_data="${ascii_data//\$\{c6\}/$c6}"
|
||||||
|
|
||||||
((text_padding=ascii_length+gap))
|
((text_padding=ascii_length+gap))
|
||||||
printf '%b\n' "$ascii_data"
|
printf '%b\n' "$ascii_data${reset}"
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3488,6 +3510,11 @@ END
|
|||||||
image="$(decode_url "$image")"
|
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
|
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
|
||||||
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
|
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
|
||||||
@@ -3509,7 +3536,7 @@ END
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Strip un-needed info from the path.
|
# Strip un-needed info from the path.
|
||||||
image="${image/'file://'}"
|
image="${image/file:\/\/}"
|
||||||
image="$(trim_quotes "$image")"
|
image="$(trim_quotes "$image")"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -3555,7 +3582,12 @@ get_window_size() {
|
|||||||
# The escape codes above print the desired output as
|
# The escape codes above print the desired output as
|
||||||
# user input so we have to use read to store the out
|
# user input so we have to use read to store the out
|
||||||
# -put as a variable.
|
# -put as a variable.
|
||||||
IFS=';t' read -d t -t 0.05 -sra term_size
|
# 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.
|
# Split the string into height/width.
|
||||||
if [[ "$image_backend" == "tycat" ]]; then
|
if [[ "$image_backend" == "tycat" ]]; then
|
||||||
@@ -3568,7 +3600,7 @@ get_window_size() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "$image_backend" == "kitty" ]] && \
|
[[ "$image_backend" == "kitty" ]] && \
|
||||||
IFS=x read -r term_width term_height < <(kitty icat --print-window-size)
|
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 \e[14t is unsupported.
|
||||||
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
||||||
@@ -3640,17 +3672,15 @@ get_image_size() {
|
|||||||
"none")
|
"none")
|
||||||
# Get image size so that we can do a better crop.
|
# Get image size so that we can do a better crop.
|
||||||
read -r width height <<< "$(identify -format "%w %h" "$image")"
|
read -r width height <<< "$(identify -format "%w %h" "$image")"
|
||||||
crop_mode="none"
|
|
||||||
|
|
||||||
while ((width >= (term_width / 2) || height >= term_height)); do
|
while ((width >= (term_width / 2) || height >= term_height)); do
|
||||||
((width=width/2))
|
((width=width/2,height=height/2))
|
||||||
((height=height/2))
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
crop_mode="none"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*) image_size="${image_size/px}" ;;
|
||||||
image_size="${image_size/px}"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
width="${width:-$image_size}"
|
width="${width:-$image_size}"
|
||||||
@@ -3749,7 +3779,7 @@ display_image() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"kitty")
|
"kitty")
|
||||||
kitty icat \
|
kitty +kitten icat \
|
||||||
--align left \
|
--align left \
|
||||||
--place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \
|
--place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \
|
||||||
"$image"
|
"$image"
|
||||||
@@ -3871,7 +3901,7 @@ prin() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Format the output.
|
# Format the output.
|
||||||
string="${string/:/${reset}${colon_color}:${info_color}}"
|
string="${string/:/${reset}${colon_color}${separator:=:}${info_color}}"
|
||||||
string="${subtitle_color}${bold}${string}"
|
string="${subtitle_color}${bold}${string}"
|
||||||
|
|
||||||
# Print the info.
|
# Print the info.
|
||||||
@@ -4056,19 +4086,19 @@ get_full_path() {
|
|||||||
get_user_config() {
|
get_user_config() {
|
||||||
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
|
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
|
||||||
|
|
||||||
shopt -s nullglob
|
|
||||||
files=("$XDG_CONFIG_HOME"/neofetch/confi*)
|
|
||||||
shopt -u nullglob
|
|
||||||
|
|
||||||
# --config /path/to/config.conf
|
# --config /path/to/config.conf
|
||||||
if [[ -f "$config_file" ]]; then
|
if [[ -f "$config_file" ]]; then
|
||||||
source "$config_file"
|
source "$config_file"
|
||||||
err "Config: Sourced user config. (${config_file})"
|
err "Config: Sourced user config. (${config_file})"
|
||||||
return
|
return
|
||||||
|
|
||||||
elif [[ -f "${files[0]}" ]]; then
|
elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then
|
||||||
source "${files[0]}"
|
source "${XDG_CONFIG_HOME}/neofetch/config.conf"
|
||||||
err "Config: Sourced user config. (${files[0]})"
|
err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config.conf)"
|
||||||
|
|
||||||
|
elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then
|
||||||
|
source "${XDG_CONFIG_HOME}/neofetch/config"
|
||||||
|
err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config)"
|
||||||
|
|
||||||
else
|
else
|
||||||
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
|
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
|
||||||
@@ -4170,7 +4200,7 @@ get_ppid() {
|
|||||||
case "$os" in
|
case "$os" in
|
||||||
"Windows")
|
"Windows")
|
||||||
ppid="$(ps -p "${1:-$PPID}" | awk '{printf $2}')"
|
ppid="$(ps -p "${1:-$PPID}" | awk '{printf $2}')"
|
||||||
ppid="${ppid/'PPID'}"
|
ppid="${ppid/PPID}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Linux")
|
"Linux")
|
||||||
@@ -4191,7 +4221,7 @@ get_process_name() {
|
|||||||
case "$os" in
|
case "$os" in
|
||||||
"Windows")
|
"Windows")
|
||||||
name="$(ps -p "${1:-$PPID}" | awk '{printf $8}')"
|
name="$(ps -p "${1:-$PPID}" | awk '{printf $8}')"
|
||||||
name="${name/'COMMAND'}"
|
name="${name/COMMAND}"
|
||||||
name="${name/*\/}"
|
name="${name/*\/}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -4307,6 +4337,7 @@ TEXT FORMATTING:
|
|||||||
--underline on/off Enable/Disable the underline.
|
--underline on/off Enable/Disable the underline.
|
||||||
--underline_char char Character to use when underlining title
|
--underline_char char Character to use when underlining title
|
||||||
--bold on/off Enable/Disable bold text
|
--bold on/off Enable/Disable bold text
|
||||||
|
--separator string Changes the default ':' separator to the specified string.
|
||||||
|
|
||||||
COLOR BLOCKS:
|
COLOR BLOCKS:
|
||||||
--color_blocks on/off Enable/Disable the color blocks
|
--color_blocks on/off Enable/Disable the color blocks
|
||||||
@@ -4492,6 +4523,7 @@ get_args() {
|
|||||||
"--underline") underline_enabled="$2" ;;
|
"--underline") underline_enabled="$2" ;;
|
||||||
"--underline_char") underline_char="$2" ;;
|
"--underline_char") underline_char="$2" ;;
|
||||||
"--bold") bold="$2" ;;
|
"--bold") bold="$2" ;;
|
||||||
|
"--separator") separator="$2" ;;
|
||||||
|
|
||||||
# Color Blocks
|
# Color Blocks
|
||||||
"--color_blocks") color_blocks="$2" ;;
|
"--color_blocks") color_blocks="$2" ;;
|
||||||
@@ -4913,6 +4945,23 @@ dhhyys+/-`
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"arcolinux_small"*)
|
||||||
|
set_colors 7 4
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c2} A
|
||||||
|
ooo
|
||||||
|
ooooo
|
||||||
|
ooooooo
|
||||||
|
ooooooooo
|
||||||
|
ooooo ooooo
|
||||||
|
ooooo ooooo
|
||||||
|
ooooo ooooo
|
||||||
|
ooooo ${c1}<oooooooo>${c2}
|
||||||
|
ooooo ${c1}<oooooo>${c2}
|
||||||
|
ooooo ${c1}<oooo>${c2}
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"ArcoLinux"*)
|
"ArcoLinux"*)
|
||||||
set_colors 7 4
|
set_colors 7 4
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -4948,7 +4997,7 @@ ${c1} /\
|
|||||||
/${c2} __ \
|
/${c2} __ \
|
||||||
/ ( ) \
|
/ ( ) \
|
||||||
/ __| |__\\\
|
/ __| |__\\\
|
||||||
/// \\\\\
|
/// \\\\\\
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -5217,6 +5266,31 @@ ${c2} `.:/++++/:.` ${c1}:oys+.
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"BlueLight"*)
|
||||||
|
set_colors 7 4
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1} oMMNMMMMMMMMMMMMMMMMMMMMMM
|
||||||
|
oMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||||
|
oMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||||
|
oMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||||
|
-+++++++++++++++++++++++mM${c2}
|
||||||
|
```````````````````````..${c1}dM${c2}
|
||||||
|
```````````````````````....${c1}dM${c2}
|
||||||
|
```````````````````````......${c1}dM${c2}
|
||||||
|
```````````````````````........${c1}dM${c2}
|
||||||
|
```````````````````````..........${c1}dM${c2}
|
||||||
|
```````````````````````............${c1}dM${c2}
|
||||||
|
.::::::::::::::::::::::-..............${c1}dM${c2}
|
||||||
|
`-+yyyyyyyyyyyyyyyyyyyo............${c1}+mMM${c2}
|
||||||
|
-+yyyyyyyyyyyyyyyyo..........${c1}+mMMMM${c2}
|
||||||
|
./syyyyyyyyyyyyo........${c1}+mMMMMMM${c2}
|
||||||
|
./oyyyyyyyyyo......${c1}+mMMMMMMMM${c2}
|
||||||
|
omdyyyyyyo....${c1}+mMMMMMMMMMM${c2}
|
||||||
|
${c1}oMMM${c2}mdhyyo..${c1}+mMMMMMMMMMMMM
|
||||||
|
oNNNNNNm${c2}dso${c1}mMMMMMMMMMMMMMM
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"BSD")
|
"BSD")
|
||||||
set_colors 1 7 4 3 6
|
set_colors 1 7 4 3 6
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -6133,6 +6207,24 @@ WW W
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"januslinux"*)
|
||||||
|
set_colors 7
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1} ________________
|
||||||
|
|\ \
|
||||||
|
| \ \
|
||||||
|
| \ \
|
||||||
|
| \ ______________\
|
||||||
|
| | |
|
||||||
|
| | |
|
||||||
|
| | |
|
||||||
|
\ | januslinux |
|
||||||
|
\ | |
|
||||||
|
\ | |
|
||||||
|
\|______________|
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"Kali"*)
|
"Kali"*)
|
||||||
set_colors 4 8
|
set_colors 4 8
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -6402,26 +6494,26 @@ EOF
|
|||||||
"Lubuntu"*)
|
"Lubuntu"*)
|
||||||
set_colors 4 7 1
|
set_colors 4 7 1
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
${c1} `-/+oyyhhhhyyo+/-`
|
${c1} `-mddhhhhhhhhhddmss`
|
||||||
./shhhhhhhhhhhhhhhhhhs/.
|
./mdhhhhhhhhhhhhhhhhhhhhhh.
|
||||||
`:shhhhhhhhhhhhhhhhhhhhhhhhs:`
|
:mdhhhhhhhhhhhhhhhhhhhhhhhhhhhm`
|
||||||
:yhhhhhhhhhhhhhhhs++yhhhhhhhhhy:
|
:ymhhhhhhhhhhhhhhhyyyyyyhhhhhhhhhy:
|
||||||
`ohhhhhhhhhhhhhs+:. .yhhhhhhhhhhhho`
|
`odhyyyhhhhhhhhhy+-````./syhhhhhhhho`
|
||||||
`shhhhhhhhhhy+:` /yhhhhhhhhhhhhhs`
|
`hhy..:oyhhhhhhhy-`:osso/..:/++oosyyyh`
|
||||||
shhhhhhhhy+. .ohhhhhhhhhhhhhs
|
dhhs .-/syhhhhs`shhhhhhyyyyyyyyyyyyhs
|
||||||
:hhhhhhy/. /hhhhhhhhhhhhh:
|
:hhhy` yso/:+syhy/yhhhhhshhhhhhhhhhhhhh:
|
||||||
shhhy/. :hhhhhhhhhhhhs
|
hhhhho. +hhhys++oyyyhhhhh-yhhhhhhhhhhhhhs
|
||||||
hy+. ` `+yhs/` +hhhhhhhhhhhh
|
hhhhhhs-`/syhhhhyssyyhhhh:-yhhhhhhhhhhhhh
|
||||||
-.:/oshy- ` :yhhhhhy/ shhhhhhhhhhh
|
hhhhhhs `:/+ossyyhyyhhhhs -yhhhhhhhhhhhh
|
||||||
shhhhhy-`/s. .shhhhhhhhho` .hhhhhhhhhhs
|
hhhhhhy/ `syyyssyyyyhhhhhh: :yhhhhhhhhhhs
|
||||||
:hhhho`:ys` /yhhhhhhhhhhhs` +hhhhhhhhh:
|
:hhhhhhyo:-/osyhhhhhhhhhhho ohhhhhhhhhh:
|
||||||
shh/.sh+ `ohhhhhhhhhhhhhhs` .hhhhhhhhs
|
sdhhhhhhhyyssyyhhhhhhhhhhh+ +hhhhhhhhs
|
||||||
`o-+hh: :yhhhhhhhhhhhhhhhho ohhhhhhs`
|
`shhhhhhhhhhhhhhhhhhhhhhy+` .yhhhhhhhh`
|
||||||
+hy-`ohhhhhhhhhhhhhhhhhhh+ -hhhhho`
|
+sdhhhhhhhhhhhhhhhhhyo/. `/yhhhhhhhd`
|
||||||
:.-yhhhhhhhhhhhhhhhhhhhhh: yhhy:
|
`:shhhhhhhhhh+---..``.:+yyhhhhhhh:
|
||||||
:shhhhhhhhhhhhhhhhhhhhhy`+s:`
|
`:mdhhhhhh/.syssyyyyhhhhhhhd:`
|
||||||
.+shhhhhhhhhhhhhhhhhhs:`
|
`+smdhhh+shhhhhhhhhhhhdm`
|
||||||
`-/+oyyhhhhyys+/-`
|
`sNmdddhhhhhhhddm-`
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -6532,6 +6624,27 @@ o00. k0O${c2}dddddd${c1}occ
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Mandriva"*)
|
||||||
|
set_colors 4 3
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c2} ``
|
||||||
|
`-.
|
||||||
|
${c1} ` ${c2}.---
|
||||||
|
${c1} -/ ${c2}-::--`
|
||||||
|
${c1} `++ ${c2}`----...```-:::::.
|
||||||
|
${c1} `os. ${c2}.::::::::::::::-``` ` `
|
||||||
|
${c1} +s+ ${c2}.::::::::::::::::---...--`
|
||||||
|
${c1}-ss: ${c2}`-::::::::::::::::-.``.``
|
||||||
|
${c1}/ss- ${c2}.::::::::::::-.`` `
|
||||||
|
${c1}+ss: ${c2}.::::::::::::-
|
||||||
|
${c1}/sso ${c2}.::::::-::::::-
|
||||||
|
${c1}.sss/ ${c2}-:::-.` .:::::
|
||||||
|
${c1} /sss+. ${c2}..`${c1} `--` ${c2}.:::
|
||||||
|
${c1} -ossso+/:://+/-` ${c2}.:`
|
||||||
|
${c1} -/+ooo+/-. ${c2}`
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"Manjaro"*)
|
"Manjaro"*)
|
||||||
set_colors 2 7
|
set_colors 2 7
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -6679,6 +6792,32 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Namib"*)
|
||||||
|
set_colors 1
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1} .:+shysyhhhhysyhs+:.
|
||||||
|
-/yyys syyy/-
|
||||||
|
-shy yhs-
|
||||||
|
-yhs shy-
|
||||||
|
+hy yh+
|
||||||
|
+ds sd+
|
||||||
|
/ys so sy/
|
||||||
|
sh smMMNdyo hs
|
||||||
|
yo ymMMMMNNMMNho oy
|
||||||
|
N ydMMMNNMMMMMMMMMmy N
|
||||||
|
N shmMMMMNNMMMMMMMMMMMMMNy N
|
||||||
|
yo ooshmNMMMNNNNMMMMMMMMMMMMMMMMMms oy
|
||||||
|
sd yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ds
|
||||||
|
/ys sy/
|
||||||
|
+ds sd+
|
||||||
|
+hy yh+
|
||||||
|
-yhs shy-
|
||||||
|
-shy yhs-
|
||||||
|
-/yyys syyy/-
|
||||||
|
.:+shysyhyhhysyhs+:.
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"NetBSD"*)
|
"NetBSD"*)
|
||||||
set_colors 5 7
|
set_colors 5 7
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -6932,24 +7071,32 @@ h+` `.-:+oyyyo/-`
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
"OpenMandriva"*)
|
"OpenMandriva"*)
|
||||||
set_colors 4 3
|
set_colors 4
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
${c2} ``
|
${c1} ``````
|
||||||
`-.
|
`-:/+++++++//:-.`
|
||||||
${c1} ` ${c2}.---
|
.:+++oooo+/:.`` ``
|
||||||
${c1} -/ ${c2}-::--`
|
`:+ooooooo+:. `-:/++++++/:.`
|
||||||
${c1} `++ ${c2}`----...```-:::::.
|
-+oooooooo:` `-++o+/::::://+o+/-
|
||||||
${c1} `os. ${c2}.::::::::::::::-``` ` `
|
`/ooooooooo- -+oo/.` `-/oo+.
|
||||||
${c1} +s+ ${c2}.::::::::::::::::---...--`
|
`+ooooooooo. :os/` .+so:
|
||||||
${c1}-ss: ${c2}`-::::::::::::::::-.``.``
|
+sssssssss/ :ss/ `+ss-
|
||||||
${c1}/ss- ${c2}.::::::::::::-.`` `
|
:ssssssssss` sss` .sso
|
||||||
${c1}+ss: ${c2}.::::::::::::-
|
ossssssssss `yyo sys
|
||||||
${c1}/sso ${c2}.::::::-::::::-
|
`sssssssssss` `yys `yys
|
||||||
${c1}.sss/ ${c2}-:::-.` .:::::
|
`sssssssssss: +yy/ +yy:
|
||||||
${c1} /sss+. ${c2}..`${c1} `--` ${c2}.:::
|
oyyyyyyyyyys. `oyy/` `+yy+
|
||||||
${c1} -ossso+/:://+/-` ${c2}.:`
|
:yyyyyyyyyyyo. `+yhs:. `./shy/
|
||||||
${c1} -/+ooo+/-. ${c2}`
|
oyyyyyyyyyyys:` .oyhys+:----/+syhy+. `
|
||||||
|
`syyyyyyyyyyyyo-` .:osyhhhhhyys+:``.:`
|
||||||
|
`oyyyyyyyyyyyyys+-`` `.----.```./oo.
|
||||||
|
/yhhhhhhhhhhhhhhyso+//://+osyhy/`
|
||||||
|
`/yhhhhhhhhhhhhhhhhhhhhhhhhy/`
|
||||||
|
`:oyhhhhhhhhhhhhhhhhhhyo:`
|
||||||
|
.:+syhhhhhhhhys+:-`
|
||||||
|
``....``
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -7404,6 +7551,30 @@ ${c1} `.::///+:/-. --///+//-:``
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Reborn OS"* | "Reborn"*)
|
||||||
|
set_colors 2 2 8
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c3}
|
||||||
|
mMMMMMMMMM MMMMMMMMMm
|
||||||
|
NM MN
|
||||||
|
MM ${c1}dddddddd dddddddd ${c3}MN
|
||||||
|
mM ${c1}dd dd ${c3}MM
|
||||||
|
${c1}dd hhhhhh hhhhh dd
|
||||||
|
${c3}mM ${c1}hh hh ${c3}Mm
|
||||||
|
NM ${c1}hd ${c3}mMMMMMMd ${c1}dh ${c3}MN
|
||||||
|
NM ${c1}dd hh ${c3}mMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||||
|
NM ${c1}dd hh ${c3}mMMMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||||
|
NM ${c1}dd hh ${c3}mMMMMMMMMm ${c1}hh dd ${c3}MN
|
||||||
|
NM ${c1}hd ${c3}mMMMMMMm ${c1}dh ${c3}MN
|
||||||
|
mM ${c1}hh hh ${c3}Mm
|
||||||
|
${c1}dd hhhhhh hhhhhh dd
|
||||||
|
${c3}MM ${c1}dd dd ${c3}MM
|
||||||
|
MM ${c1}dddddddd dddddddd ${c3}MN
|
||||||
|
NM MN
|
||||||
|
mMMMMMMMMM MMMMMMMMMm
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"Red Star"* | "Redstar"*)
|
"Red Star"* | "Redstar"*)
|
||||||
set_colors 1 7 3
|
set_colors 1 7 3
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
@@ -7865,6 +8036,31 @@ ${c1}
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Star"*)
|
||||||
|
set_colors 7
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1} ./
|
||||||
|
`yy-
|
||||||
|
`y.`y`
|
||||||
|
`` s- .y `
|
||||||
|
+h//:..` +/ /o ``..:/so
|
||||||
|
/o``.-::/:/+ o/://::-.`+o`
|
||||||
|
:s` `. .` `s/
|
||||||
|
.y. .s-
|
||||||
|
`y- :s`
|
||||||
|
.-//. /+:.
|
||||||
|
.:/:. .:/:.
|
||||||
|
-+o:. .:+:.
|
||||||
|
-///++///:::` .-::::///+so-
|
||||||
|
``..o/ d-....```
|
||||||
|
s. `/. d
|
||||||
|
h .+o-+o- h.
|
||||||
|
h -o/` `/o: s:
|
||||||
|
-s/o:` `:o/+/
|
||||||
|
/s- -yo
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"SteamOS"*)
|
"SteamOS"*)
|
||||||
set_colors 5 7
|
set_colors 5 7
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.7.
|
||||||
.TH NEOFETCH "1" "June 2018" "Neofetch 5.0.0" "User Commands"
|
.TH NEOFETCH "1" "October 2018" "Neofetch 5.0.1" "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
|
||||||
@@ -143,6 +143,9 @@ Character to use when underlining title
|
|||||||
.TP
|
.TP
|
||||||
\fB\-\-bold\fR on/off
|
\fB\-\-bold\fR on/off
|
||||||
Enable/Disable bold text
|
Enable/Disable bold text
|
||||||
|
.TP
|
||||||
|
\fB\-\-separator\fR string
|
||||||
|
Changes the default ':' separator to the specified string.
|
||||||
.SS "COLOR BLOCKS:"
|
.SS "COLOR BLOCKS:"
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-color_blocks\fR on/off
|
\fB\-\-color_blocks\fR on/off
|
||||||
|
|||||||
Reference in New Issue
Block a user