feat: add more cool stuff haha (#38)

Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/38
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
Naomi Carrigan 2024-11-15 21:39:21 +00:00 committed by Naomi the Technomancer
parent f9a712568b
commit 326720da21

View File

@ -19,48 +19,61 @@ This is the current diagnostic report from `hyfetch`.
naomi@technomancer
------------------
OS: Arch Linux x86_64
├─Kernel: 6.11.8-arch1-2
├─Locale: en_GB.UTF-8
├─Shell: /usr/bin/zsh 5.9
├─Terminal: alacritty
└───Terminal Font: Fira Code
Host: MS-7B86 4.0
Kernel: 6.11.8-arch1-2
Uptime: 47 minutes
Packages: 86 (pip), 11 (npm), 6 (pnpm), 1362 (pacman), 56 (steam)
Shell: /usr/bin/zsh 5.9
Resolution: 1920x1080, 3840x2160, 1920x1080
WM: Hyprland
Theme: Adwaita [GTK2]
Icons: Adwaita [GTK2]
Cursor: miku-cursor-linux [GTK3]
Terminal: vscode
CPU: AMD Ryzen 5 3600X (12) @ 3.8GHz [73.6°on]
GPU: NVIDIA GeForce GTX 1070 Ti
Memory: 11.09 GiB / 31.29 GiB (35%)
Network: 1 Gbps
BIOS: American Megatrends Inc. 5.14 (11/07/2019)
GPU Driver: NVIDIA 565.57.01
Disk (/): 38G / 45G (89%)
Font: Cantarell 11 [GTK2], Fira Code 11 [GTK3]
Users: naomi
Locale: en_GB.UTF-8
├─BIOS: American Megatrends Inc. 5.14 (11/07/2019)
├─CPU: AMD Ryzen 5 3600X (12) @ 3.8GHz [90.3°on]
├─GPU: NVIDIA GeForce GTX 1070 Ti
├───GPU Driver: NVIDIA 565.57.01
├─Disk: /home: 338G/412G (87%)
├───Root: /: 34G/45G (78%)
├───Boot: /boot: 397M/1022M (39%)
└─Memory: 18.36 GiB / 31.29 GiB (58%)
Programming Languages
---------------------
Bash: 5.2.37
Clang: 18.1.8
C++: 14.2.1
Dart: 3.5.3
└─Flutter: 3.24.3
Dotnet: 8.0.110
└─C-sharp Compiler: 3.9.0-6.21124.20
Go: 1.23.3
Java: 21.0.5
├─Kotlin: Kotlin version 2.0.21-release-482 (JRE 21.0.5+11)
Python: Python 3.12.7 [GCC 14.2.1 20240910]
├─PIP: pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)
├─Gradle: 8.10.2
└─Kotlin: 2.0.21-release
Lua: 5.4.7
PHP: 8.3.13
Python: 3.12.7
└─PIP: 24.3.1
Node: 23.1.0
├─NPM: 10.9.0
├─Yarn: 1.22.22
├─PNPM: 9.12.3
TypeScript: Version 5.6.3
Dotnet: 8.0.110
├─C-sharp Compiler: Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
C++: cpp (GCC) 14.2.1 20240910
Rust: rustc 1.80.1 (3f5fd8dd4 2024-08-06)
├─Rustup: rustup 1.27.1 (54dd3d00f 2024-04-24)
├─Cargo: cargo 1.80.1 (376290515 2024-07-16)
Lua: Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio
Go: go version go1.23.3 linux/amd64
PHP: PHP 8.3.13 (cli) (built: Oct 23 2024 07:04:22)
└─PNPM: 9.12.3
Ruby: 3.3.5
Rust: 1.80.1
├─Rustup: 1.27.1
└─Cargo: 1.80.1
TypeScript: 5.6.3
Databases
---------
MongoDB: 7.0.14
└─Mongo Shell: 7.0.14
MySQL: 9.0.1
PostgreSQL: 16.3
Tools
-----
Browser: Zen 1.0.1-a.19
Editor: VSCodium 1.95.2
├─Emacs: 29.4
└─Nano: 8.2
```
</details>
@ -199,6 +212,21 @@ electron25-bin 25.9.8-3
espanso-gui 24.7-1
espanso-gui-debug 24.7-1
espanso-wayland 2.2.1-4
flutter 3.24.3-2
flutter-common 3.24.3-2
flutter-devel 3.24.3-2
flutter-engine-android-google-bin 3.24.3-1
flutter-engine-common-google-bin 3.24.3-1
flutter-engine-linux-google-bin 3.24.3-1
flutter-engine-web-google-bin 3.24.3-1
flutter-gradle 3.24.3-2
flutter-intellij-patch 3.24.3-2
flutter-material-fonts-google-bin 3.24.3-1
flutter-sky-engine-google-bin 3.24.3-1
flutter-target-android 3.24.3-2
flutter-target-linux 3.24.3-2
flutter-target-web 3.24.3-2
flutter-tool 3.24.3-2
flyctl 0.3.37-1
flyctl-debug 0.3.37-1
gameconqueror-git 0.17.1104.0375cc0-1
@ -328,6 +356,7 @@ eza 0.20.8-1
firefox 132.0.2-1
flameshot 12.1.0-5
fluffychat 1.22.1-2
flutter 3.24.3-2
flyctl 0.3.37-1
freetube 0.22.0-2
gameconqueror-git 0.17.1104.0375cc0-1
@ -339,6 +368,7 @@ github-cli 2.62.0-1
gnome-keyring 1:46.2-1
gnu-netcat 0.7.1-10
google-chat-linux 5.29.23_1-5
gradle 8.10.2-1
grim 1.4.1-2
grimshot 1.10-1
gst-plugin-pipewire 1:1.2.6-1
@ -393,8 +423,10 @@ mari0 1.6.2-4
mindustry 7.0.146-3
minetest 5.9.0-4
mommy 1.5.1-1
mongodb 7.0.14-1.1
mongodb-tools-bin 100.10.0-3
mongosh-bin 2.3.3-1
mysql 9.0.1-1
nano 8.2-1
nasm 2.16.03-1
ncurses5-compat-libs 6.5-1
@ -433,6 +465,7 @@ pokemon-colorscripts-git r114.5802ff67-1
pokete 0.9.2-1
polkit-gnome 0.105-11
polkit-kde-agent 6.2.3-1
postgresql 16.3-4
proton-mail-bin 1.2.4-1
proton-vpn-gtk-app 4.7.4-2
puzzles 20240103-1
@ -448,6 +481,7 @@ retroarch-assets-ozone 1:516-1
retroarch-assets-xmb 1:516-1
roam 135.2.0.beta001-1
rofimoji 6.5.0-1
ruby 3.3.5-2
samrewritten-git r258.39d524a-1
scanmem 0.17-9
sddm 0.21.0-4
@ -638,6 +672,7 @@ crawl-data 0.32.1-1
crowdin-cli 4.3.0-1
cryptsetup 2.7.5-1
curl 8.11.0-3
dart 3.5.3-1
dav1d 1.4.3-1
db5.3 5.3.28-5
dbus 1.14.10-2
@ -714,6 +749,21 @@ flare-engine 1.14-1.3
flex 2.6.4-5
fluffychat 1.22.1-2
fluidsynth 2.4.0-1
flutter 3.24.3-2
flutter-common 3.24.3-2
flutter-devel 3.24.3-2
flutter-engine-android-google-bin 3.24.3-1
flutter-engine-common-google-bin 3.24.3-1
flutter-engine-linux-google-bin 3.24.3-1
flutter-engine-web-google-bin 3.24.3-1
flutter-gradle 3.24.3-2
flutter-intellij-patch 3.24.3-2
flutter-material-fonts-google-bin 3.24.3-1
flutter-sky-engine-google-bin 3.24.3-1
flutter-target-android 3.24.3-2
flutter-target-linux 3.24.3-2
flutter-target-web 3.24.3-2
flutter-tool 3.24.3-2
flyctl 0.3.37-1
flyctl-debug 0.3.37-1
fmt 11.0.2-1
@ -776,6 +826,7 @@ google-chat-linux 5.29.23_1-5
gperftools 2.16-1
gpgme 1.24.0-1
gpm 1.20.7.r38.ge82d1a6-6
gradle 8.10.2-1
graphene 1.10.8-2
graphite 1:1.3.14-4
grep 3.11-1
@ -1049,6 +1100,7 @@ libcamera-ipa 0.3.2-1
libcanberra 1:0.30+r2+gc0620e4-4
libcap 2.71-1
libcap-ng 0.8.5-2
libcbor 0.11.0-1
libcdio 2.1.0-4
libcdio-paranoia 10.2+2.0.2-1
libcdr 0.1.7-8
@ -1092,6 +1144,7 @@ libexif 0.6.24-3
libexttextcat 3.4.7-1
libfdk-aac 2.0.3-1
libffi 3.4.6-1
libfido2 1.15.0-1
libfontenc 1.1.8-1
libfreeaptx 0.1.1-2
libfreehand 0.1.2-5
@ -1156,6 +1209,7 @@ libmtp 1.1.21-2
libmwaw 0.3.22-3
libmypaint 1.6.1-2
libmysofa 1.3.3-1
libmysqlclient 9.0.1-1
libndp 1.9-1
libnet 2:1.3-1
libnetfilter_conntrack 1.0.9-2
@ -1377,6 +1431,7 @@ mkinitcpio 39.2-2
mkinitcpio-busybox 1.36.1-1
mobile-broadband-provider-info 20240407-1
mommy 1.5.1-1
mongodb 7.0.14-1.1
mongodb-tools-bin 100.10.0-3
mongodb-tools-bin-debug 100.10.0-3
mongosh-bin 2.3.3-1
@ -1389,6 +1444,8 @@ mpg123 1.32.9-1
mtdev 1.1.7-1
mudlet-debug 4.18.3-1
mypaint-brushes1 1.3.1-2
mysql 9.0.1-1
mysql-clients 9.0.1-1
nano 8.2-1
nasm 2.16.03-1
ncurses 6.5-3
@ -1537,6 +1594,7 @@ poppler-glib 24.11.0-2
poppler-qt6 24.11.0-2
popt 1.19-2
portaudio 1:19.7.0-3
postgresql 16.3-4
postgresql-libs 16.3-4
ppsspp-assets 1.17.1-1
procps-ng 4.0.4-3
@ -1651,9 +1709,11 @@ qt6-tools 6.8.0-1
qt6-translations 6.8.0-1
qt6-wayland 6.8.0-1
qtkeychain-qt5 0.14.3-1
rapidjson 1.1.0-6
raptor 2.0.16-5
rasqal 1:0.9.33-7
rav1e 0.7.1-1
re2 1:20240702-2
readline 8.2.013-1
redact-bin 0.18.0-1
redact-bin-debug 0.18.0-1
@ -1667,9 +1727,12 @@ rhash 1.4.4-1
rnnoise 1:0.2-1
roam 135.2.0.beta001-1
rofimoji 6.5.0-1
rpcsvc-proto 1.4.4-2
rtkit 0.13-3
rtmpdump 1:2.4.r105.6f6bb13-1
rubberband 4.0.0-1
ruby 3.3.5-2
rubygems 3.5.16-1
runc 1.2.1-1
samrewritten-git r258.39d524a-1
samrewritten-git-debug r258.39d524a-1
@ -3561,74 +3624,88 @@ There are two config files here. The first is for `hyfetch` itself, and goes in
The second goes in `~/.config/neofetch/config.conf`.
```conf
home_disk_info() {
df -h | grep '/home' | awk '{printf "%s: %s/%s (%s)", $NF, $3, $2, $5}'
}
boot_disk_info() {
df -h | grep '/boot' | awk '{printf "%s: %s/%s (%s)", $NF, $3, $2, $5}'
}
root_disk_info() {
df -h | grep '/$' | awk '{printf "%s: %s/%s (%s)", $NF, $3, $2, $5}'
}
print_info() {
info title
info underline
info "OS" distro
info "├─Kernel" kernel
info "├─Locale" locale
info "├─Shell" shell
print "├─WM" "$(hyprland --version | head -n1)"
info "├─Terminal" term
info "└───Terminal Font" term_font
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
info "Editor" editor
info "Resolution" resolution
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
info "Theme" theme
info "Icons" icons
info "Cursor" cursor
info "Terminal" term
info "Terminal Font" term_font
info "CPU" cpu
info "GPU" gpu
info "Memory" memory
info "Network" network
info "Bluetooth" bluetooth
info "BIOS" bios
info "GPU Driver" gpu_driver
info "Disk" disk
info "Font" font
info "Users" users
info "Locale" locale
info "├─BIOS" bios
info "├─CPU" cpu
info "├─GPU" gpu
info "├───GPU Driver" gpu_driver
prin "├─Disk" "$(home_disk_info)"
prin "├───Root" "$(root_disk_info)"
prin "├───Boot" "$(boot_disk_info)"
info "└─Memory" memory
prin ""
prin "Programming Languages"
info underline
prin "Bash" "$(bash --version | head -n1 | grep -o "version [0-9]\+\.[0-9]\+\.[0-9]\+" | cut -d' ' -f2)"
prin "Clang" "$(clang --version | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "C++" "$(cpp --version | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "Dart" "$(dart --version | grep -o "SDK version: [0-9]\+\.[0-9]\+\.[0-9]\+" | cut -d' ' -f3)"
prin "└─Flutter" "$(flutter --version | grep -o "Flutter [0-9]\+\.[0-9]\+\.[0-9]\+" | cut -d' ' -f2)"
prin "Dotnet" "$(dotnet --version)"
prin "└─C-sharp Compiler" "$(csc -v | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+\.[0-9]\+[0-9]\+\.[0-9]\+")"
prin "Go" "$(go version | grep -o "go[0-9]\+\.[0-9]\+\.[0-9]\+" | sed 's/go//')"
info "Java" java_ver
prin "├─Kotlin" "$(kotlin -version)"
info "Python" python_ver
prin "├─PIP" "$(pip --version)"
prin "├─Gradle" "$(gradle -v | head -n3 | tail -n1 | grep -o "Gradle [0-9]\+\.[0-9]\+\.[0-9]\+" | cut -d' ' -f2)"
prin "└─Kotlin" "$(kotlin -version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+-release")"
prin "Lua" "$(lua -v | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "PHP" "$(php -v | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "Python" "$(python --version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+" | head -n1)"
prin "└─PIP" "$(pip --version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+" | head -n1)"
info "Node" node_ver
prin "├─NPM" "$(npm -v)"
prin "├─Yarn" "$(yarn -v)"
prin "├─PNPM" "$(pnpm -v)"
prin "TypeScript" "$(tsc -v)"
# prin "Clang" "$(clang -v | grep 'clang version')"
prin "Dotnet" "$(dotnet --version)"
prin "├─C-sharp Compiler" "$(csc -v)"
prin "C++" "$(cpp --version)"
prin "Rust" "$(rustc --version)"
prin "├─Rustup" "$(rustup -V)"
prin "├─Cargo" "$(cargo version)"
prin "Lua" "$(lua -v)"
prin "Go" "$(go version)"
prin "PHP" "$(php -v)"
prin "└─PNPM" "$(pnpm -v)"
prin "Ruby" "$(ruby -v | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "Rust" "$(rustc --version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "├─Rustup" "$(rustup -V | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "└─Cargo" "$(cargo version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "TypeScript" "$(tsc -v | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin ""
prin "Databases"
info underline
prin "MongoDB" "$(mongod --version | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "└─Mongo Shell" "$(mongo --version | head -n1 | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "MySQL" "$(mysql --version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+")"
prin "PostgreSQL" "$(psql --version | grep -o "[0-9]\+\.[0-9]\+")"
prin ""
prin "Tools"
info underline
prin "Browser" "Zen $(zen-browser --version | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+-[a-z]\+\.[0-9]\+")"
prin "Editor" "VSCodium $(codium --version | head -n1)"
prin "├─Emacs" "$(emacs --version | head -n1 | grep -o "[0-9]\+\.[0-9]\+")"
prin "└─Nano" "$(nano --version | grep -o "[0-9]\+\.[0-9]\+")"
}
title_fqdn="on"
kernel_shorthand="on"
distro_shorthand="off"
os_arch="on"
uptime_shorthand="off"
memory_percent="on"
memory_unit="gib"
mem_precision=2
package_managers="on"
package_separate="on"
shell_path="on"
shell_version="on"
editor_path="on"
editor_version="on"
speed_type="bios_limit"
speed_shorthand="on"
cpu_brand="on"
@ -3638,21 +3715,7 @@ cpu_temp="on"
gpu_brand="on"
gpu_type="all"
refresh_rate="on"
gtk_shorthand="off"
gtk2="on"
gtk3="on"
qt="on"
public_ip_host="http://ident.me"
public_ip_timeout=2
local_ip_interface=('auto')
de_version="on"
disk_show=('/')
disk_subtitle="mount"
disk_percent="on"
music_player="spotify"
song_format="%artist% - %album% - %title%"
song_shorthand="off"
mpc_args=()
colors=(distro)
bold="on"
underline_enabled="on"
@ -3670,7 +3733,6 @@ bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
memory_display="on"
battery_display="off"
disk_display="on"
image_backend="ascii"
image_source="auto"