Compare commits

..

47 Commits

Author SHA1 Message Date
Azalea (on HyDEV-Daisy) 0a1e97cd92 [U] Release 1.4.2 2022-10-04 13:10:37 -04:00
Azalea (on HyDEV-Daisy) 7e59c362be [F] Fix deploy script 2022-10-04 13:10:00 -04:00
Azalea (on HyDEV-Daisy) 3e8c103479 [U] Update changelog 2022-10-04 13:07:52 -04:00
Azalea (on HyDEV-Daisy) 5be5aa1b51 [O] Show memory percentage, speed shorthand, refresh rate by default 2022-10-04 13:03:32 -04:00
Azalea (on HyDEV-Daisy) 08f75415eb [F] Fix neofetch permissions (+x) 2022-10-04 12:44:02 -04:00
Azalea (on HyDEV-Daisy) 02b6e9d72d [PR] dylanaraps/neofetch#1706 from ravenclaw900 - Add DietPi support
Upstream PR: https://github.com/dylanaraps/neofetch/pull/1706
Thanks to @ravenclaw900

Co-Authored-By: ravenclaw900 <50060110+ravenclaw900@users.noreply.github.com>
2022-10-04 12:42:15 -04:00
Azalea (on HyDEV-Daisy) 59b9dc6e1a [PR] dylanaraps/neofetch#2196 from matt-fidd - Added for OmniOS illumos distribution
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2196
Thanks to @matt-fidd

Co-authored-by: matt <matt@fiddaman.net>
2022-10-04 12:31:15 -04:00
Azalea (on HyDEV-Daisy) 0f302eea60 [PR] dylanaraps/neofetch#2201 from FakeShell - add droidian to neofetch
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2201
Thanks to @FakeShell

Co-authored-by: Bardia Moshiri <fakeshell@bardia.tech>
2022-10-04 12:22:52 -04:00
Azalea (on HyDEV-Daisy) 7c7cba2346 Merge branch 'master' of github.com:hykilpikonna/hyfetch 2022-10-04 12:04:37 -04:00
Azalea (on HyDEV-Daisy) f989ec0d20 [PR] dylanaraps/neofetch#2210 from chaeya - Added ascii logo for hamonikr
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2210
Thanks to @chaeya

Co-authored-by: Kevin Kim <hckim@invesume.com>
2022-10-04 12:04:18 -04:00
Hykilpikonna e72fe4d934 [PR] #24 from OldWorldOrdr: Fix bash 5.2 column cut off issue 2022-10-04 11:57:54 -04:00
Kevin Kim 7f48e4cd43 Added ascii logo for hamonikr 2022-10-01 20:24:04 +09:00
OldWorldOrdr bc89c50427 Update neofetch 2022-09-30 06:34:19 -04:00
Hykilpikonna 7c93a0df1c [+] Progress bar test 2022-09-27 14:40:06 -04:00
Hykilpikonna 8b67e539b5 [U] Update changlog 2022-09-26 16:18:34 -04:00
Hykilpikonna 7c16e15cea [U] Update change log 2022-09-26 16:12:34 -04:00
Azalea (on HyDEV-Daisy) 79e0a8360b Merge branch 'master' of github.com:hykilpikonna/hyfetch 2022-09-26 09:16:30 -04:00
Azalea (on HyDEV-Daisy) d2347cefb1 [+] #22 Add tidal-hifi song detection 2022-09-26 09:16:18 -04:00
Hykilpikonna cda96dda4e [PR] #23 from stock-linux: Added Stock Linux logo 2022-09-26 09:11:32 -04:00
Skythrew 3dde4bcdef feat: added Stock Linux logo 2022-09-26 07:31:09 +02:00
Hykilpikonna 0811acab58 [F] Fix multiple CPU model detection for ARM
https://github.com/dylanaraps/neofetch/pull/2139
2022-09-20 13:20:32 -04:00
Hykilpikonna f14324ffce [U] Display memory in GiB by default 2022-09-20 11:50:07 -04:00
Hykilpikonna 1ba7b339c9 [-] Disable network display when network is not detected 2022-09-20 11:44:17 -04:00
Bardia Moshiri 8987b0b15f change droidian from half green to full green logo 2022-09-18 16:07:32 -04:00
Bardia Moshiri 4f12d97e40 add droidian to neofetch 2022-09-18 15:40:34 -04:00
matt c3beb21966 Add 'pkg list' package source 2022-09-15 17:24:08 +00:00
matt 078af21630 Fix solaris fqdn 2022-09-15 17:24:08 +00:00
matt 4e7724ecf8 Add illumos os support 2022-09-15 17:24:08 +00:00
matt 624bd97045 Fix uptime value in Solaris 2022-09-15 17:24:08 +00:00
matt 45ea478414 Added ascii art for OmniOS illumos distribution 2022-09-15 17:24:08 +00:00
Azalea (on HyDEV-Daisy) 9e001c530f Merge branch 'master' of github.com:hykilpikonna/hyfetch 2022-09-10 15:19:08 -04:00
Azalea (on HyDEV-Daisy) d850e4c91e [PR] dylanaraps/neofetch#2139 from saeziae - Fix support for ARM, RISC-V, LoongArch detection
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2139
Thanks to @saeziae

Co-authored-by: Estela Xu <i@estela.cn>
2022-09-10 15:18:49 -04:00
Hykilpikonna 376268f79e [PR] #21 from TheSudoer: Local install method and contributing note 2022-09-10 02:04:14 -04:00
Hykilpikonna b955a61ac5 [U] Update local install method and contributing note 2022-09-10 01:56:29 -04:00
C0UNTM31N c099c9e5f7 Update README.md 2022-09-10 00:17:54 -05:00
C0UNTM31N 7b62c80881 Fixed formatting 2022-09-10 00:15:33 -05:00
C0UNTM31N d6b33ae3e9 Merge branch 'master' of https://github.com/TheSudoer/hyfetch 2022-09-10 00:09:09 -05:00
C0UNTM31N 9da32dab4b Altered the deploy script and added build instructions 2022-09-10 00:05:08 -05:00
Azalea (on HyDEV-Daisy) cf0202fd7c Merge branch 'master' of github.com:hykilpikonna/hyfetch 2022-09-09 19:53:18 -04:00
Azalea (on HyDEV-Daisy) 8a01ce491b [PR] dylanaraps/neofetch#2192 from Skythrew - Stock Linux distro support
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2192
Thanks to @Skythrew

Co-authored-by: Skythrew <76571984+Skythrew@users.noreply.github.com>
2022-09-09 19:53:08 -04:00
saeziae fd2248daec merge riscv and loongarch to others 2022-09-08 22:55:50 +08:00
Hykilpikonna ab23dc3c2b Merge pull request #20 from TheSudoer/master 2022-09-07 10:52:25 -04:00
C0UNTM31N 58a82c2b5e Fix GhostBSD commit being atributed to the wrong person, was previously attributed to dylanaraps as a commit to neofetch. 2022-09-06 13:18:30 -05:00
Azalea (on HyDEV-Daisy) d0fda1ef0d [U] Deploy tool: Push tag 2022-09-06 12:20:37 -04:00
Azalea (on HyDEV-Daisy) 82c37a28d3 [F] fix deploy script path 2022-09-06 12:18:58 -04:00
Skythrew 042ec7a33c Added support for Stock Linux distro (squirrel package manager add) 2022-09-03 12:38:12 +02:00
saeziae 3253d4cbcc add loongarch 2022-07-31 18:55:05 +08:00
8 changed files with 440 additions and 149 deletions
+44 -4
View File
@@ -12,6 +12,7 @@ This repo also serves as an updated version of the original `neofetch` since the
* Method 2: `npx neowofetch` * Method 2: `npx neowofetch`
* Method 3: `bash <(curl -sL neowofetch.hydev.org)` * Method 3: `bash <(curl -sL neowofetch.hydev.org)`
## Installation ## Installation
### Method 1: Install using Python pip (Recommended) ### Method 1: Install using Python pip (Recommended)
@@ -26,9 +27,20 @@ pip install hyfetch
Currently, these distributions have existing packages for HyFetch: Currently, these distributions have existing packages for HyFetch:
* ArchLinux: `yay -S hyfetch` (Thanks to @ Aleksana) * ArchLinux: `yay -S hyfetch` (Thanks to [@Aleksana](https://github.com/Aleksanaa))
* Nix: `nix-env -i hyfetch` (Thanks to @ YisuiDenghua) * Nix: `nix-env -i hyfetch` (Thanks to [@YisuiDenghua](https://github.com/YisuiDenghua))
* Guix: `guix install hyfetch` (Thanks to @ WammKD) * Guix: `guix install hyfetch` (Thanks to [@WammKD](https://github.com/WammKD))
### Method 3: Install the latest developmental version using git
Install Python >= 3.7 first. Then run the following commands:
```sh
git clone https://github.com/hykilpikonna/hyfetch.git
cd hyfetch
pip install .
```
## Usage ## Usage
@@ -36,6 +48,9 @@ When you run `hyfetch` for the first time, it will prompt you to choose a color
If you want to use the updated `neofetch` without LGBTQ flags, check out [this section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch) If you want to use the updated `neofetch` without LGBTQ flags, check out [this section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch)
## Questions and answers
#### Q: How do I change my config? #### Q: How do I change my config?
A: Use `hyfetch -c` A: Use `hyfetch -c`
@@ -48,6 +63,18 @@ Feel free to experiment with it!
![image](https://user-images.githubusercontent.com/22280294/162614553-eb758e4e-1936-472c-8ca7-b601c696c6eb.png) ![image](https://user-images.githubusercontent.com/22280294/162614553-eb758e4e-1936-472c-8ca7-b601c696c6eb.png)
## Contributing
To make changes to our codebase, you first need to create a fork by clicking the "Fork" button on the top right. Then, you can clone your fork of the source code using `git clone https://github.com/{your username}/hyfetch.git`.
After making changes to the source code, you can run `python -m hyfetch` in the root directory of your repo to test out your changes.
If they work correctly, you can commit and push these changes using git command or Github Desktop. Then, you can create a pull request on Github so that it can go into our next release!
You can also install your version locally by running `pip install .` in the repo root.
## Change Log ## Change Log
### About Notation ### About Notation
@@ -62,6 +89,19 @@ Updates to `neowofetch` begins with the emoji 🖼️
<!-- CHANGELOG STARTS HERE ---> <!-- CHANGELOG STARTS HERE --->
### 1.4.2
* 🌈 Detailed runnning/contributing instructions in README.md (#21)
* 🖼️ Distro - Add Stock Linux (#23)
* 🖼️ Distro - Add DietPi ([dylanaraps#1706](https://github.com/dylanaraps/neofetch/pull/1706))
* 🖼️ Distro - Add OmniOS illumos ([dylanaraps#2196](https://github.com/dylanaraps/neofetch/pull/2196))
* 🖼️ Distro - Add Droidian ([dylanaraps#2201](https://github.com/dylanaraps/neofetch/pull/2201))
* 🖼️ Distro - Add HamoniKR ([dylanaraps#2210](https://github.com/dylanaraps/neofetch/pull/2210))
* 🖼️ Song - Add support for TIDAL HiFi (#22)
* 🖼️ CPU - Detect multiple CPU models for ARM
* 🖼️ Misc - Better defaults: Show RAM in GiB, RAM percentage, CPU speed rounding, refresh rate
* 🖼️ Bug Fix - Fix bash 5.2 column cut off issue (#24)
### 1.4.1 ### 1.4.1
* 🌈 Paginate flags (#14) * 🌈 Paginate flags (#14)
@@ -72,7 +112,7 @@ Updates to `neowofetch` begins with the emoji 🖼️
* 🌈 Add experimental Windows support (very unstable at the moment) * 🌈 Add experimental Windows support (very unstable at the moment)
* 🖼️ Distro - Add ravynOS ([dylanaraps#2182](https://github.com/dylanaraps/neofetch/pull/2182)) * 🖼️ Distro - Add ravynOS ([dylanaraps#2182](https://github.com/dylanaraps/neofetch/pull/2182))
* 🖼️ Distro - Add ChonkySealOS ([dylanaraps#2180](https://github.com/dylanaraps/neofetch/pull/2180)) * 🖼️ Distro - Add ChonkySealOS ([dylanaraps#2180](https://github.com/dylanaraps/neofetch/pull/2180))
* 🖼️ Distro - Add GhostBSD ([dylanaraps#2180](https://github.com/dylanaraps/neofetch/pull/2180)) * 🖼️ Distro - Add GhostBSD ([TheSudoer#18](https://github.com/hykilpikonna/hyfetch/pull/18))
* 🖼️ Distro - Add NekOS ([dylanaraps#2186](https://github.com/dylanaraps/neofetch/pull/2186)) * 🖼️ Distro - Add NekOS ([dylanaraps#2186](https://github.com/dylanaraps/neofetch/pull/2186))
* 🖼️ Distro - Add astOS ([dylanaraps#2185](https://github.com/dylanaraps/neofetch/pull/2185)) * 🖼️ Distro - Add astOS ([dylanaraps#2185](https://github.com/dylanaraps/neofetch/pull/2185))
* 🖼️ Distro - Fix ChromeOS identification ([dylanaraps#1949](https://github.com/dylanaraps/neofetch/pull/1949)) * 🖼️ Distro - Fix ChromeOS identification ([dylanaraps#1949](https://github.com/dylanaraps/neofetch/pull/1949))
+1 -1
View File
@@ -7,7 +7,7 @@ from pathlib import Path
from typing_extensions import Literal from typing_extensions import Literal
CONFIG_PATH = Path.home() / '.config/hyfetch.json' CONFIG_PATH = Path.home() / '.config/hyfetch.json'
VERSION = '1.4.1' VERSION = '1.4.2'
TEST_ASCII = r""" TEST_ASCII = r"""
+282 -105
View File
@@ -28,7 +28,7 @@
# 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=7.3.1 version=7.3.2
# Fallback to a value of '5' for shells which support bash # Fallback to a value of '5' for shells which support bash
# but do not set the 'BASH_' shell variables (osh). # but do not set the 'BASH_' shell variables (osh).
@@ -174,7 +174,7 @@ uptime_shorthand="on"
# Example: # Example:
# on: '1801MiB / 7881MiB (22%)' # on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB' # off: '1801MiB / 7881MiB'
memory_percent="off" memory_percent="on"
# Change memory output unit. # Change memory output unit.
# #
@@ -186,7 +186,7 @@ memory_percent="off"
# kib '1020928KiB / 7117824KiB' # kib '1020928KiB / 7117824KiB'
# mib '1042MiB / 6951MiB' # mib '1042MiB / 6951MiB'
# gib: ' 0.98GiB / 6.79GiB' # gib: ' 0.98GiB / 6.79GiB'
memory_unit="mib" memory_unit="gib"
# Packages # Packages
@@ -253,7 +253,7 @@ speed_type="bios_limit"
# Example: # Example:
# on: 'i7-6500U (4) @ 3.1GHz' # on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz' # off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="off" speed_shorthand="on"
# Enable/Disable CPU brand in output. # Enable/Disable CPU brand in output.
# #
@@ -356,7 +356,7 @@ gpu_type="all"
# Example: # Example:
# on: '1920x1080 @ 60Hz' # on: '1920x1080 @ 60Hz'
# off: '1920x1080' # off: '1920x1080'
refresh_rate="off" refresh_rate="on"
# Gtk Theme / Icons / Font # Gtk Theme / Icons / Font
@@ -799,33 +799,33 @@ image_source="auto"
# Flag: --ascii_distro # Flag: --ascii_distro
# #
# NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy, Android, Antergos, antiX, AOSC OS, # NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy, Android, Antergos, antiX, AOSC OS,
# AOSC OS/Retro, Aperio GNU/Linux, Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchMerge, # AOSC OS/Retro, Aperio GNU/Linux, Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchStrike,
# ArchStrike, ArcoLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Bitrig, # ArcoLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Bitrig, BlackArch,
# BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs, Cachy OS, # blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs, Cachy OS, Calculate,
# Calculate, CalinixOS, Carbs, CBL-Mariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, # CalinixOS, Carbs, CBL-Mariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
# ChonkySealOS, Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Condres, Container Linux by # Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Condres, Container Linux by CoreOS, CRUX,
# CoreOS, CRUX, Crystal Linux, Cucumber, CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, # Crystal Linux, Cucumber, CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS,
# Deepin, DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary, Elive, EncryptOS, EndeavourOS, # Devuan, DietPi, DracOS, DragonFly, Drauger, Droidian, Elementary, Elive, EncryptOS, EndeavourOS,
# Endless, EuroLinux, Exherbo, Exodia Predator OS, Fedora, Feren, Finnix, FreeBSD, FreeMiNT, # Endless, EuroLinux, Exherbo, Exodia Predator OS, Fedora, Feren, Finnix, FreeBSD, FreeMiNT,
# Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense, GNOME, GNU, # Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense, GNOME, GNU,
# GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HarDClanZ, Hash, Huayra, HydroOS, Hyperbola, # GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HamoniKR, HarDClanZ, Hash, Huayra, HydroOS,
# iglunix, instantOS, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion, Korora, # Hyperbola, iglunix, instantOS, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion,
# KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE, LibreELEC, Linspire, Linux, Linux Lite, # Korora, KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE, LibreELEC, Linspire, Linux, Linux
# Linux Mint, Linux Mint Old, Live Raizo, LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS, Mandriva, # Lite, Linux Mint, Linux Mint Old, Live Raizo, LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS,
# Manjaro, MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX, Namib, Neptune, NetBSD, Netrunner, # Mandriva, Manjaro, MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX, Namib, Neptune, NetBSD,
# Nitrux, NixOS, NomadBSD, Nurunner, NuTyX, Obarun, OBRevenge, Open Source Media Center, OpenBSD, # Netrunner, Nitrux, NixOS, NomadBSD, Nurunner, NuTyX, Obarun, OBRevenge, OmniOS, Open Source Media
# openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, openSUSE, openSUSE Leap, openSUSE # Center, OpenBSD, openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, openSUSE, openSUSE
# Tumbleweed, OpenWrt, OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch, Pardus, Parrot, # Leap, openSUSE Tumbleweed, OpenWrt, OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch,
# Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo, Peppermint, Pisi, PNM Linux, Pop!_OS, Porteus, # Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo, Peppermint, Pisi, PNM Linux,
# PostMarketOS, Profelis SambaBOX, Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes, Qubyt, Quibian, # Pop!_OS, Porteus, PostMarketOS, Profelis SambaBOX, Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes,
# Radix, Raspbian, ravynOS, Reborn OS, Red Star, Redcore, Redhat, Refracted Devuan, Regata, # Qubyt, Quibian, Radix, Raspbian, ravynOS, Reborn OS, Red Star, Redcore, Redhat, Refracted Devuan,
# Regolith, rocky, Rosa, Sabayon, sabotage, Sailfish, SalentOS, Scientific, semc, Septor, Serene, # Regata, Regolith, rocky, Rosa, Sabayon, sabotage, Sailfish, SalentOS, Scientific, semc, Septor,
# SharkLinux, ShastraOS, Siduction, SkiffOS, Slackware, SliTaz, SmartOS, Soda, Solus, Source Mage, # Serene, SharkLinux, ShastraOS, Siduction, SkiffOS, Slackware, SliTaz, SmartOS, Soda, Solus, Source
# Sparky, Star, SteamOS, Sulin, SunOS, SwagArch, t2, Tails, TeArch, TorizonCore, Trisquel, Twister, # Mage, Sparky, Star, SteamOS, Stock Linux, Sulin, SunOS, SwagArch, t2, Tails, TeArch, TorizonCore,
# Ubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Sway, # Trisquel, Twister, Ubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE, Ubuntu
# Ubuntu Touch, Ubuntu-GNOME, ubuntu_old02, Ultramarine Linux, Univalent, Univention, Uos, uwuntu, # Studio, Ubuntu Sway, Ubuntu Touch, Ubuntu-GNOME, ubuntu_old02, Ultramarine Linux, Univalent,
# Venom, VNux, Void, VzLinux, wii-linux-ngx, Windows, Windows 10, Windows 11, XFerience, Xubuntu, # Univention, Uos, uwuntu, Venom, VNux, Void, VzLinux, wii-linux-ngx, Windows, Windows 10, Windows
# yiffOS, Zorin have ascii logos. # 11, XFerience, Xubuntu, yiffOS, Zorin have ascii logos.
# NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu have 'old' logo variants, use # NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu have 'old' logo variants, use
# {distro}_old to use them. # {distro}_old to use them.
@@ -954,7 +954,10 @@ get_os() {
# just the output of "uname -s". # just the output of "uname -s".
case $kernel_name in case $kernel_name in
Darwin) os=$darwin_name ;; Darwin) os=$darwin_name ;;
SunOS) os=Solaris ;; SunOS) case $(uname -o 2>/dev/null) in
illumos) os=illumos ;;
*) os=Solaris ;;
esac ;;
Haiku) os=Haiku ;; Haiku) os=Haiku ;;
MINIX) os=MINIX ;; MINIX) os=MINIX ;;
AIX) os=AIX ;; AIX) os=AIX ;;
@@ -1301,7 +1304,7 @@ get_distro() {
distro=${distro/Microsoft } distro=${distro/Microsoft }
;; ;;
Solaris) Solaris|illumos)
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) ;;
@@ -1332,7 +1335,7 @@ get_distro() {
# Get OS architecture. # Get OS architecture.
case $os in case $os in
Solaris|AIX|Haiku|IRIX|FreeMiNT|BSD) Solaris|illumos|AIX|Haiku|IRIX|FreeMiNT|BSD)
machine_arch=$(uname -p) machine_arch=$(uname -p)
;; ;;
@@ -1577,7 +1580,7 @@ get_model() {
model=${model/Model} model=${model/Model}
;; ;;
Solaris) Solaris|illumos)
model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}') model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')
;; ;;
@@ -1616,7 +1619,18 @@ get_title() {
user=${USER:-$(id -un || printf %s "${HOME/*\/}")} user=${USER:-$(id -un || printf %s "${HOME/*\/}")}
case $title_fqdn in case $title_fqdn in
on) hostname=$(hostname -f) ;; on)
case $os in
illumos|Solaris)
hostname=$(hostname)
domainname=$(domainname)
[[ -n "$domainname" ]] && hostname+=".$domainname"
;;
*)
hostname=$(hostname -f)
;;
esac
;;
*) *)
hostname=${HOSTNAME:-$(hostname)} hostname=${HOSTNAME:-$(hostname)}
hostname=${hostname%.*} hostname=${hostname%.*}
@@ -1681,9 +1695,11 @@ get_uptime() {
s=$((now - boot)) s=$((now - boot))
;; ;;
Solaris) Solaris|illumos)
s=$(kstat -p unix:0:system_misc:snaptime | awk '{print $2}') boot=$(kstat -p unix:0:system_misc:boot_time | awk '{print $2}')
s=${s/.*} now=$(date +%s)
s=$((now - boot))
;; ;;
AIX|IRIX) AIX|IRIX)
@@ -1783,7 +1799,7 @@ get_packages() {
} }
case $os in case $os in
Linux|BSD|"iPhone OS"|Solaris) Linux|BSD|"iPhone OS"|Solaris|illumos)
# Package Manager Programs. # Package Manager Programs.
has kiss && tot kiss l has kiss && tot kiss l
has cpt-list && tot cpt-list has cpt-list && tot cpt-list
@@ -1807,6 +1823,7 @@ get_packages() {
has pacstall && tot pacstall -L has pacstall && tot pacstall -L
has bulge && tot bulge list has bulge && tot bulge list
has pm && tot pm list packages has pm && tot pm list packages
has squirrel && tot cat /var/squirrel/repos/local/INDEX
# Using the dnf package cache is much faster than rpm. # Using the dnf package cache is much faster than rpm.
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
@@ -1875,6 +1892,10 @@ get_packages() {
((packages == 0)) && ((packages == 0)) &&
has pkg && tot pkg list has pkg && tot pkg list
;; ;;
illumos-*)
has pkg && tot pkg list
;;
esac esac
# List these last as they accompany regular package managers. # List these last as they accompany regular package managers.
@@ -2495,31 +2516,65 @@ get_cpu() {
[[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")" [[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")"
;; ;;
"loongarch64")
cpu="$(awk -F':' '/Model/ {print $2; exit}' "$cpu_file")"
;;
"arm"* | "aarch64") "arm"* | "aarch64")
if [[ $(trim "$ascii_distro") == Android* ]]; then if [[ $(trim "$distro") == Android* ]]; then
# Android roms have modified cpuinfo that shows CPU model as a string # Android roms have modified cpuinfo that shows CPU model as a string
cpu="$(awk -F '\\s*: | @' \ cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$cpu_file")"
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")"
else else
# ARM linux displays binary model code in cpuinfo, which needs to be decoded with lscpu # ARM linux displays binary model code in cpuinfo, which needs to be decoded with lscpu
cpu="$(lscpu | awk -F': ' '/Vendor ID/ {print $2; exit}') $(lscpu | awk -F': ' '/Model name/ {print $2; exit}')" if ! [[ -x "$(command -v python)" ]]; then
fi cpu="$(lscpu | awk -F': ' '/Vendor ID/ {print $2; exit}' ) $(lscpu | awk -F': ' '/Model name/ {print $2; exit}')"
;; else
# Sometimes there are multiple CPU models (e.g. RK3399 has 4 A53 and 2 A72 cores)
# However, I don't know how to implement this in awk, so I'll use python for now
read -r -d '' py_script << END
from subprocess import check_output
"riscv"*)
# This will fail to detect cpu on qemu def find(lines, label):
cpu="$(awk -F': ' '/uarch/ {print $2; exit}' "$cpu_file")" for ln in lines:
if ln.strip().startswith(label):
return ln.split(label)[-1].strip()
return None
if __name__ == '__main__':
lscpu = check_output('lscpu').decode()
vendor_id = find(lscpu.split('\n'), 'Vendor ID:') or None
cpus = []
for model_desc in lscpu.split('Model name:'):
lines = model_desc.split('\n')
model = lines[0].strip()
cores = int(find(lines, 'Core(s) per socket:') or "-1")
cores *= int(find(lines, 'Socket(s):') or "1")
if cores == -1:
continue
mhz = float(find(lines, 'CPU max MHz:') or find(lines, 'CPU min MHz:') or "0")
speed = f'@ {mhz / 1000:.2f} GHz' if mhz > 0 else ''
cpus.append(f'{vendor_id} {model} ({cores}) {speed}')
print('\n'.join(cpus))
END
tmp_cpus=$(python -c "$py_script")
while IFS= read -r line; do
prin "${subtitle:+${subtitle}}" "$line"
done <<< "$tmp_cpus"
return
fi
fi
;; ;;
esac esac
# If cpu is not detected on a platform-specific bases, fallback to cpuinfo method # If cpu is not detected on a platform-specific bases, fallback to cpuinfo method
[[ -z "$cpu" ]] && cpu="$(awk -F '\\s*: | @' \ [[ -z "$cpu" ]] && cpu="$(awk -F '\\s*: | @' \
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ { '/model name|Model|uarch|Hardware|Processor|^cpu model|chip type|^cpu type/ {
cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")" cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")"
speed_dir="/sys/devices/system/cpu/cpu0/cpufreq" speed_dir="/sys/devices/system/cpu/cpu0/cpufreq"
@@ -2694,7 +2749,7 @@ get_cpu() {
esac esac
;; ;;
"Solaris") "Solaris" | "illumos")
# Get CPU name. # Get CPU name.
cpu="$(psrinfo -pv)" cpu="$(psrinfo -pv)"
cpu="${cpu//*$'\n'}" cpu="${cpu//*$'\n'}"
@@ -3126,10 +3181,10 @@ get_memory() {
esac esac
;; ;;
"Solaris" | "AIX") "Solaris" | "illumos" | "AIX")
hw_pagesize="$(pagesize)" hw_pagesize="$(pagesize)"
case $os in case $os in
"Solaris") "Solaris" | "illumos")
pages_total="$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')" pages_total="$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')"
pages_free="$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')" pages_free="$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')"
;; ;;
@@ -3175,8 +3230,8 @@ get_memory() {
case $memory_unit in case $memory_unit in
gib) gib)
mem_used=$(awk '{printf "%.2f", $1 / $2}' <<< "$mem_used 1024") mem_used=$(awk '{printf "%.1f", $1 / $2}' <<< "$mem_used 1024")
mem_total=$(awk '{printf "%.2f", $1 / $2}' <<< "$mem_total 1024") mem_total=$(awk '{printf "%.1f", $1 / $2}' <<< "$mem_total 1024")
mem_label=GiB mem_label=GiB
;; ;;
@@ -3187,7 +3242,7 @@ get_memory() {
;; ;;
esac esac
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB} ${mem_perc:+(${mem_perc}%)}" memory="${mem_used} ${mem_label:-MiB} / ${mem_total} ${mem_label:-MiB} ${mem_perc:+(${mem_perc}%)}"
# Bars. # Bars.
case $memory_display in case $memory_display in
@@ -3233,9 +3288,7 @@ get_network() {
fi fi
fi fi
done < <(sort -rn <<<"$networks" | uniq -c) done < <(sort -rn <<<"$networks" | uniq -c)
if [ -z "$network" ]; then if [ -n "$network" ]; then
network="None"
else
network="${network%; }" network="${network%; }"
fi fi
} }
@@ -3283,6 +3336,7 @@ get_song() {
"strawberry" "strawberry"
"tauonmb" "tauonmb"
"tomahawk" "tomahawk"
"tidal-hifi"
"vlc" "vlc"
"xmms2d" "xmms2d"
"xnoise" "xnoise"
@@ -3335,6 +3389,7 @@ get_song() {
"gogglesmm"*) get_song_dbus "gogglesmm" ;; "gogglesmm"*) get_song_dbus "gogglesmm" ;;
"xnoise"*) get_song_dbus "xnoise" ;; "xnoise"*) get_song_dbus "xnoise" ;;
"tauonmb"*) get_song_dbus "tauon" ;; "tauonmb"*) get_song_dbus "tauon" ;;
"tidal-hifi"*) get_song_dbus "tidal-hifi" ;;
"olivia"*) get_song_dbus "olivia" ;; "olivia"*) get_song_dbus "olivia" ;;
"exaile"*) get_song_dbus "exaile" ;; "exaile"*) get_song_dbus "exaile" ;;
"netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;; "netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;;
@@ -4469,7 +4524,7 @@ get_battery() {
get_local_ip() { get_local_ip() {
case $os in case $os in
"Linux" | "BSD" | "Solaris" | "AIX" | "IRIX") "Linux" | "BSD" | "Solaris" | "illumos" | "AIX" | "IRIX")
if [[ "${local_ip_interface[0]}" == "auto" ]]; then if [[ "${local_ip_interface[0]}" == "auto" ]]; then
local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')" local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')"
local_ip="${local_ip/uid*}" local_ip="${local_ip/uid*}"
@@ -4601,8 +4656,8 @@ get_cols() {
printf -v block_spaces "%${block_height}s" printf -v block_spaces "%${block_height}s"
# Convert the spaces into rows of blocks. # Convert the spaces into rows of blocks.
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}nl}" [[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[mnl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}" [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[mnl}"
# Determine the horizontal offset of the blocks. # Determine the horizontal offset of the blocks.
case $col_offset in case $col_offset in
@@ -5821,44 +5876,45 @@ ASCII:
NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy, NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy,
Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux, Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux,
Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchMerge, ArchStrike, Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchStrike, ArcoLinux,
ArcoLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Bitrig,
Bitrig, BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi, BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai,
bonsai, BSD, BunsenLabs, Cachy OS, Calculate, CalinixOS, Carbs, CBL- BSD, BunsenLabs, Cachy OS, Calculate, CalinixOS, Carbs, CBL-Mariner,
Mariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
ChonkySealOS, Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Condres,
Condres, Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber, Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber,
CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS, CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS,
Devuan, DracOS, DragonFly, Drauger, Elementary, Elive, EncryptOS, Devuan, DietPi, DracOS, DragonFly, Drauger, Droidian, Elementary,
EndeavourOS, Endless, EuroLinux, Exherbo, Exodia Predator OS, Elive, EncryptOS, EndeavourOS, Endless, EuroLinux, Exherbo, Exodia
Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware, Funtoo, Predator OS, Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware,
GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense, GNOME, GNU, Funtoo, GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense,
GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HarDClanZ, Hash, GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HamoniKR,
Huayra, HydroOS, Hyperbola, iglunix, instantOS, IRIX, Itc, HarDClanZ, Hash, Huayra, HydroOS, Hyperbola, iglunix, instantOS,
januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion, Korora, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion,
KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE, LibreELEC, Korora, KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE,
Linspire, Linux, Linux Lite, Linux Mint, Linux Mint Old, Live Raizo, LibreELEC, Linspire, Linux, Linux Lite, Linux Mint, Linux Mint Old,
LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS, Mandriva, Manjaro, Live Raizo, LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS, Mandriva,
MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX, Namib, Manjaro, MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX,
Neptune, NetBSD, Netrunner, Nitrux, NixOS, NomadBSD, Nurunner, Namib, Neptune, NetBSD, Netrunner, Nitrux, NixOS, NomadBSD,
NuTyX, Obarun, OBRevenge, Open Source Media Center, OpenBSD, Nurunner, NuTyX, Obarun, OBRevenge, OmniOS, Open Source Media
openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, Center, OpenBSD, openEuler, OpenIndiana, openmamba, OpenMandriva,
openSUSE, openSUSE Leap, openSUSE Tumbleweed, OpenWrt, OPNsense, OpenStage, openSUSE, openSUSE Leap, openSUSE Tumbleweed, OpenWrt,
Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch, Pardus, Parrot, OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch,
Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo, Peppermint, Pisi, Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo,
PNM Linux, Pop!_OS, Porteus, PostMarketOS, Profelis SambaBOX, Peppermint, Pisi, PNM Linux, Pop!_OS, Porteus, PostMarketOS,
Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes, Qubyt, Quibian, Radix, Profelis SambaBOX, Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes,
Raspbian, ravynOS, Reborn OS, Red Star, Redcore, Redhat, Refracted Qubyt, Quibian, Radix, Raspbian, ravynOS, Reborn OS, Red Star,
Devuan, Regata, Regolith, rocky, Rosa, Sabayon, sabotage, Sailfish, Redcore, Redhat, Refracted Devuan, Regata, Regolith, rocky, Rosa,
SalentOS, Scientific, semc, Septor, Serene, SharkLinux, ShastraOS, Sabayon, sabotage, Sailfish, SalentOS, Scientific, semc, Septor,
Siduction, SkiffOS, Slackware, SliTaz, SmartOS, Soda, Solus, Source Serene, SharkLinux, ShastraOS, Siduction, SkiffOS, Slackware,
Mage, Sparky, Star, SteamOS, Sulin, SunOS, SwagArch, t2, Tails, SliTaz, SmartOS, Soda, Solus, Source Mage, Sparky, Star, SteamOS,
TeArch, TorizonCore, Trisquel, Twister, Ubuntu, Ubuntu Budgie, Stock Linux, Sulin, SunOS, SwagArch, t2, Tails, TeArch, TorizonCore,
Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Trisquel, Twister, Ubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu
Sway, Ubuntu Touch, Ubuntu-GNOME, ubuntu_old02, Ultramarine Linux, Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Sway, Ubuntu Touch,
Univalent, Univention, Uos, uwuntu, Venom, VNux, Void, VzLinux, wii- Ubuntu-GNOME, ubuntu_old02, Ultramarine Linux, Univalent,
linux-ngx, Windows, Windows 10, Windows 11, XFerience, Xubuntu, Univention, Uos, uwuntu, Venom, VNux, Void, VzLinux, wii-linux-ngx,
yiffOS, Zorin have ascii logos. Windows, Windows 10, Windows 11, XFerience, Xubuntu, yiffOS, Zorin
have ascii logos.
NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu
have 'old' logo variants, use {distro}_old to use them. have 'old' logo variants, use {distro}_old to use them.
@@ -6956,6 +7012,34 @@ ${c1} ``--:::::::-.`
EOF EOF
;; ;;
"Stock Linux"*)
set_colors 4 7
read -rd '' ascii_data << 'EOF'
${c1}
#G5J5G#
&BPYJJJJJJJYPB&
&#G5JJJJJJY5YJJJJJJ5G#&
#G5YJJJJJY5G#& &#G5YJJJJJY5G#
BPYJJJJJJJ5B& &BPYJJJJJJYPB
JJJJJJJJJJY5G#& &BPYJJJJJ
JJJJJJJJJJJJJJY5G# &JJJJJ
PYJJJJJJJJJJJJJJJJYPB& GYJJJ
&BPYJJJJJJJJJJJJJJJJ5PB& &BP
#G5YJJJJJJJJJJJJJJJY5G#
PB& &BP5JJJJJJJJJJJJJJJJYPB&
JJJYG &BPYJJJJJJJJJJJJJJJJYP
JJJJJ& #G5YJJJJJJJJJJJJJJ
JJJJJYPB& &#G5YJJJJJJJJJJ
BPYJJJJJJYPB& &B5JJJJJJJYPB
#G5YJJJJJY5G#& &#G5YJJJJJY5G#
&#G5JJJJJJY5YJJJJJJ5G#&
&BPYJJJJJJJYPB&
#G5J5G#
EOF
;;
"ArchMerge"*) "ArchMerge"*)
set_colors 6 6 7 1 set_colors 6 6 7 1
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
@@ -8133,6 +8217,27 @@ ${c2} `Y$$
EOF EOF
;; ;;
"Droidian"*)
set_colors 2 10
read -rd '' ascii_data <<'EOF'
${c2} _,met$$$$$gg.
,g$$$$$$$$$$$$$$$$P.
,$$P' `$$$.
',$$P ,ggs. `$$b:
`d$$' ,$P"' ${c1}.${c2} $$$
$$P d$' ${c1},${c2} $$P
$$: $$. ${c1}-${c2} ,d$$'
$$; Y$b._ _,d$P'
Y$$. ${c1}`.${c2}`"Y$$$$P"'
${c2} `$$b ${c1}"-.__
${c2} `Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
EOF
;;
"Deepin"*) "Deepin"*)
set_colors 2 7 set_colors 2 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
@@ -8200,6 +8305,31 @@ ${c1} ..,,;;;::;,..
EOF EOF
;; ;;
"DietPi"*)
set_colors 2 0
read -rd '' ascii_data <<'EOF'
${c1} :=+******+- -+******+=:
=#-::-::::-=#:-#=-::::-::-#=
:%-::--==-::-%%-::-==--::-%:
+#-:::::=+++${c2}@@${c1}+++=-::::-#=
:#+-::::=%${c2}@@@@@${c1}=::::-+#:
=@%##%${c2}@@@@@@@@${c1}%##%@=
${c2} .#@@@@@@@@@@@@@@@@@@@@#.
%@@@@@@@@@@@@@@@@@@@@@@%
-@@@@@@@@@@@@@@@@@@@@@@@@:
.#@@@@@@@@@@%%%%%@@@@@@@@@@@#.
#@@@${c1}+-=*#%${c2}%%%%%%%%%${c1}%%#+--#${c2}@@@#
%@@%${c1}*. .:${c2}=*%%%%*${c1}=: .#${c2}@@@%
:%@@@${c1}#+=-:${c2}:-*%%%%+::${c1}:-=+%${c2}@@@%:
:@@@@%@%%%%@${c1}#${c2}#${c1}#${c2}%@%%%%@%@@@@.
+@@@@@@@@@${c1}%${c2}=*+${c1}%${c2}@%@@@@@@@@+
#@@@@@@@@@@@@@@@@@@@@@@#
-#@@@@@@@@@@@@@@@@@@#-
-*%@@@@@@@@@@%*-
.+%@@@@%+.
EOF
;;
"DracOS"*) "DracOS"*)
set_colors 1 7 3 set_colors 1 7 3
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
@@ -9060,6 +9190,37 @@ ${c3} MMMM${c4} .cOMMMMM|/MMMMM/`
EOF EOF
;; ;;
"HamoniKR"*)
set_colors 4 7 99 1 3 7
read -rd '' ascii_data <<'EOF'
${c1}
cO0Ox.
.ldddddddo.
.lddddddddddo
'lddddddddddddc
,oddddddddddddd;
'ldddddddddddddo.
.oddddddddddddddc.
,dddddddddddddddo.
,ccoooooooocoddooo:
,cooooooooooooooooop ${c3} c000x.
${c1}.cooooooooooooooopcllll${c3} .cddddddo.
${c1}coooooooooooooop' .qlll.${c3} .ddoooooooo;
${c1}cooooooooooc; ${c3}'qlllp. .ddoooooooooo;
${c1}.cooooooc; ${c3}'lllbc...coooooooooooo;
${c1} .cooc' ${c3}.llllcoooooooooooooo.
.coooooooooooooop:
.coooooooooooooop'
.cooooooooooooop.
.cooooooooooooop.
.coooooooooooop.
.cooooooooooop.
.cooooooooop.
.cooooop'
EOF
;;
"Huayra"*) "Huayra"*)
set_colors 4 7 set_colors 4 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
@@ -10430,6 +10591,22 @@ Q@@@@@ggg@@f@ @@@@@@L
EOF EOF
;; ;;
"OmniOS"*)
set_colors 15 3 8
read -rd '' ascii_data <<'EOF'
${c1}
____ __ __ _ _ _
/ __ \ | \/ || \ | || |
| | | || || \| || |
| |__| || |\/| || , `${c2}_${c1}||${c2}_${c1}| ${c2}____${c1}
\____/ |_| |_||_|\${c2}/ __ \ / ___|
| | | ||(__
${c3}community${c2} | |__| | ___)|
${c3}edition${c2} \____/ |____/
EOF
;;
"openbsd_small") "openbsd_small")
set_colors 3 7 6 1 8 set_colors 3 7 6 1 8
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
+40 -37
View File
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH NEOFETCH "1" "September 2022" "Neofetch 7.3.1" "User Commands" .TH NEOFETCH "1" "October 2022" "Neofetch 7.3.2" "User Commands"
.SH NAME .SH NAME
Neofetch \- manual page for Neofetch 7.3.1 Neofetch \- manual page for Neofetch 7.3.2
.SH SYNOPSIS .SH SYNOPSIS
.B neofetch .B neofetch
\fI\,func_name --option "value" --option "value"\/\fR \fI\,func_name --option "value" --option "value"\/\fR
@@ -303,42 +303,45 @@ Which Distro's ascii art to print
.TP .TP
NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy, NOTE: AIX, AlmaLinux, Alpine, Alter, Amazon, AmogOS, Anarchy,
Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux, Android, Antergos, antiX, AOSC OS, AOSC OS/Retro, Aperio GNU/Linux,
Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchMerge, ArchStrike, Apricity, Arch, ArchBox, Archcraft, ARCHlabs, ArchStrike, ArcoLinux,
ArcoLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Artix, Arya, Asahi, AsteroidOS, astOS, Bedrock, BigLinux, Bitrig,
Bitrig, BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi, BlackArch, blackPanther, BLAG, BlankOn, BlueLight, Bodhi, bonsai,
bonsai, BSD, BunsenLabs, Cachy OS, Calculate, CalinixOS, Carbs, CBLMariner, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, BSD, BunsenLabs, Cachy OS, Calculate, CalinixOS, Carbs, CBL\-Mariner,
ChonkySealOS, Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, CelOS, Center, CentOS, Chakra, ChaletOS, Chapeau, ChonkySealOS,
Condres, Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber, Chrom, Cleanjaro, Clear Linux OS, ClearOS, Clover, Condres,
Container Linux by CoreOS, CRUX, Crystal Linux, Cucumber,
CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS, CutefishOS, CyberOS, dahlia, DarkOs, Darwin, Debian, Deepin, DesaOS,
Devuan, DracOS, DragonFly, Drauger, Elementary, Elive, EncryptOS, Devuan, DietPi, DracOS, DragonFly, Drauger, Droidian, Elementary,
EndeavourOS, Endless, EuroLinux, Exherbo, Exodia Predator OS, Elive, EncryptOS, EndeavourOS, Endless, EuroLinux, Exherbo, Exodia
Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware, Funtoo, Predator OS, Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware,
GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense, GNOME, GNU, Funtoo, GalliumOS, Garuda, Gentoo, GhostBSD, glaucus, gNewSense,
GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HarDClanZ, Hash, GNOME, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, Haiku, HamoniKR,
Huayra, HydroOS, Hyperbola, iglunix, instantOS, IRIX, Itc, HarDClanZ, Hash, Huayra, HydroOS, Hyperbola, iglunix, instantOS,
januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion, Korora, IRIX, Itc, januslinux, Kaisen, Kali, KaOS, KDE, Kibojoe, Kogaion,
KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE, LibreELEC, Korora, KrassOS, KSLinux, Kubuntu, LangitKetujuh, LaxerOS, LEDE,
Linspire, Linux, Linux Lite, Linux Mint, Linux Mint Old, Live Raizo, LibreELEC, Linspire, Linux, Linux Lite, Linux Mint, Linux Mint Old,
LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS, Mandriva, Manjaro, Live Raizo, LMDE, Lubuntu, Lunar, mac, Mageia, MagpieOS, Mandriva,
MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX, Namib, Manjaro, MassOS, MatuusOS, Maui, Mer, Minix, MIRACLE LINUX, MX,
Neptune, NetBSD, Netrunner, Nitrux, NixOS, NomadBSD, Nurunner, Namib, Neptune, NetBSD, Netrunner, Nitrux, NixOS, NomadBSD,
NuTyX, Obarun, OBRevenge, Open Source Media Center, OpenBSD, Nurunner, NuTyX, Obarun, OBRevenge, OmniOS, Open Source Media
openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, Center, OpenBSD, openEuler, OpenIndiana, openmamba, OpenMandriva,
openSUSE, openSUSE Leap, openSUSE Tumbleweed, OpenWrt, OPNsense, OpenStage, openSUSE, openSUSE Leap, openSUSE Tumbleweed, OpenWrt,
Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch, Pardus, Parrot, OPNsense, Oracle, orchid, OS Elbrus, PacBSD, Parabola, parch,
Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo, Peppermint, Pisi, Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, pearOS, Pengwin, Pentoo,
PNM Linux, Pop!_OS, Porteus, PostMarketOS, Profelis SambaBOX, Peppermint, Pisi, PNM Linux, Pop!_OS, Porteus, PostMarketOS,
Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes, Qubyt, Quibian, Radix, Profelis SambaBOX, Proxmox, PuffOS, Puppy, PureOS, Q4OS, Qubes,
Raspbian, ravynOS, Reborn OS, Red Star, Redcore, Redhat, Refracted Qubyt, Quibian, Radix, Raspbian, ravynOS, Reborn OS, Red Star,
Devuan, Regata, Regolith, rocky, Rosa, Sabayon, sabotage, Sailfish, Redcore, Redhat, Refracted Devuan, Regata, Regolith, rocky, Rosa,
SalentOS, Scientific, semc, Septor, Serene, SharkLinux, ShastraOS, Sabayon, sabotage, Sailfish, SalentOS, Scientific, semc, Septor,
Siduction, SkiffOS, Slackware, SliTaz, SmartOS, Soda, Solus, Source Serene, SharkLinux, ShastraOS, Siduction, SkiffOS, Slackware,
Mage, Sparky, Star, SteamOS, Sulin, SunOS, SwagArch, t2, Tails, SliTaz, SmartOS, Soda, Solus, Source Mage, Sparky, Star, SteamOS,
TeArch, TorizonCore, Trisquel, Twister, Ubuntu, Ubuntu Budgie, Stock Linux, Sulin, SunOS, SwagArch, t2, Tails, TeArch, TorizonCore,
Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Trisquel, Twister, Ubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu
Sway, Ubuntu Touch, Ubuntu\-GNOME, ubuntu_old02, Ultramarine Linux, Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Sway, Ubuntu Touch,
Univalent, Univention, Uos, uwuntu, Venom, VNux, Void, VzLinux, wiilinux\-ngx, Windows, Windows 10, Windows 11, XFerience, Xubuntu, Ubuntu\-GNOME, ubuntu_old02, Ultramarine Linux, Univalent,
yiffOS, Zorin have ascii logos. Univention, Uos, uwuntu, Venom, VNux, Void, VzLinux, wii\-linux\-ngx,
Windows, Windows 10, Windows 11, XFerience, Xubuntu, yiffOS, Zorin
have ascii logos.
.TP .TP
NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu NOTE: arch, dragonfly, Fedora, LangitKetujuh, nixos, redhat, Ubuntu
have 'old' logo variants, use {distro}_old to use them. have 'old' logo variants, use {distro}_old to use them.
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "neowofetch", "name": "neowofetch",
"version": "1.4.1", "version": "1.4.2",
"description": "Updated neofetch", "description": "Updated neofetch",
"repository": { "repository": {
"type": "git", "type": "git",
+68
View File
@@ -0,0 +1,68 @@
from __future__ import annotations
import sys
import time
from dataclasses import dataclass
from pathlib import Path
from urllib.request import urlretrieve
from hyfetch.color_util import printc, color
from hyfetch.neofetch_util import term_size
@dataclass
class Theme:
done_char: str
todo_char: str
prefix: str = ''
suffix: str = ''
done_len: int = 1
todo_len: int = 1
CLASSIC_THEME = Theme('', '.', '[', ']')
NEW_THEME = Theme('&a━', '&c━')
EMOJI_THEME = Theme('', '🕑', done_len=2, todo_len=2)
EGG_THEME = Theme('🐣', '🥚', done_len=2, todo_len=2)
FLOWER_THEME = Theme('🌸', '🥀', done_len=2, todo_len=2)
def print_progressbar(total: int, i: int, length: int | None = None, theme: Theme = EMOJI_THEME, unit=''):
if not length:
length = term_size()[0]
i += 1
completed = f'{i * 100 / total:.0f}%'
placeholder = 'PLACEHOLDER_BAR'
template = f'{theme.prefix}{placeholder}{theme.suffix}&r {completed} {i}/{total}{unit}'
length -= len(template) - len(placeholder) + 2
progress = int(i / total * length)
bar = f'{theme.done_char * (progress // theme.todo_len)}{theme.todo_char * ((length - progress) // theme.done_len)}'
print(color(template.replace(placeholder, bar)), end='\r', flush=True)
def download_pbar(url: str, path: Path):
def hook(b: int, bsize: int, tsize: int):
print_progressbar(tsize // 1024 // 1024, b * bsize // 1024 // 1024, unit=' MB')
if path.is_dir():
filename = url.split('/')[-1]
path = path / filename
path.parent.mkdir(exist_ok=True, parents=True)
urlretrieve(url, filename=path, reporthook=hook)
print()
if __name__ == '__main__':
# theme = {'emoji': EMOJI_THEME, 'flower': FLOWER_THEME, 'egg': EGG_THEME, 'classic': CLASSIC_THEME, 'new': NEW_THEME}
#
# for name, t in theme.items():
# print(f'\n{name} theme:')
# for i in range(100):
# print_progressbar(100, i, theme=t)
# time.sleep(0.015)
# print()
download_pbar('https://github.com/git-for-windows/git/releases/download/v2.37.2.windows.2/MinGit-2.37.2.2-busybox-64-bit.zip', Path('Downloads'))
+2 -1
View File
@@ -124,6 +124,7 @@ def create_release(v: str):
# 4. Push # 4. Push
print('Pushing commits...') print('Pushing commits...')
subprocess.check_call(['git', 'push']) subprocess.check_call(['git', 'push'])
subprocess.check_call(['git', 'push', 'origin', v])
def deploy(): def deploy():
@@ -131,7 +132,7 @@ def deploy():
Deploy release to pip and npm Deploy release to pip and npm
""" """
print('Deploying to pypi...') print('Deploying to pypi...')
subprocess.check_call(['bash', './deploy.sh']) subprocess.check_call(['bash', 'tools/deploy.sh'])
print('Done!') print('Done!')
print('Deploying to npm...') print('Deploying to npm...')
+2
View File
@@ -1,6 +1,8 @@
# Pull request that I don't plan on merging, or already merged pull request that the script didn't # Pull request that I don't plan on merging, or already merged pull request that the script didn't
# detect. # detect.
IgnoreList: IgnoreList:
# [2193] Added DietPi os ASCII art
2193: duplicate
# [2154] Added Support for Uwuntu # [2154] Added Support for Uwuntu
2154: merged 2154: merged
# [2156] Update neofetch (for macOS 13) # [2156] Update neofetch (for macOS 13)