Last active
April 25, 2025 11:05
-
-
Save GoldenStack/f4b49fcbf60706737b5409fe26102bf2 to your computer and use it in GitHub Desktop.
Diff for my neofetch install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/neofetch b/neofetch | |
index 32601b5c..f8bbb07a 100755 | |
--- a/neofetch | |
+++ b/neofetch | |
@@ -1522,6 +1522,9 @@ get_distro() { | |
distro=${distro//Enterprise Server} | |
+ distro="Red Star OS via $distro" | |
+ distro=${distro/Ubuntu/Ubuntu(*)} | |
+ | |
[[ $distro ]] || distro="$os (Unknown)" | |
# Get OS architecture. | |
@@ -1559,6 +1562,8 @@ get_bios() { | |
fi | |
;; | |
esac | |
+ | |
+ bios="" | |
} | |
get_model() { | |
@@ -1876,6 +1881,8 @@ get_model() { | |
model=${model//All Series} | |
model=${model//�} | |
+ model="$model, Angry Birds edition" | |
+ | |
case $model in | |
"Standard PC"*) model="KVM/QEMU (${model})" ;; | |
OpenBSD*) model="vmm ($model)" ;; | |
@@ -1952,6 +1959,8 @@ get_kernel() { | |
on|tiny) kernel=$kernel_version ;; | |
*) unset kernel ;; | |
esac | |
+ | |
+ kernel="(Steam Deck) $kernel" | |
} | |
get_uptime() { | |
@@ -2018,6 +2027,8 @@ get_uptime() { | |
;; | |
esac | |
+ s=$((s * 1813719)) | |
+ | |
d="$((s / 60 / 60 / 24)) days" | |
h="$((s / 60 / 60 % 24)) hours" | |
m="$((s / 60 % 60)) minutes" | |
@@ -2032,9 +2043,6 @@ get_uptime() { | |
((${h/ *} == 0)) && unset h | |
((${m/ *} == 0)) && unset m | |
- # Add "(!)" if more than 100 days | |
- ((${d/ *} > 100)) && d="${d}(!)" | |
- | |
uptime=${d:+$d, }${h:+$h, }$m | |
uptime=${uptime%', '} | |
uptime=${uptime:-$s seconds} | |
@@ -2421,6 +2429,8 @@ get_packages() { | |
fi | |
packages=${packages/pacman-key/pacman} | |
+ | |
+ packages="15172 (brew), $packages" | |
} | |
get_shell() { | |
@@ -2483,6 +2493,8 @@ get_shell() { | |
shell=${shell/xonsh\//xonsh } | |
shell=${shell/options*} | |
shell=${shell/\(*\)} | |
+ | |
+ shell="ChairmanMaoShell v3.6 CCP" | |
} | |
get_editor() { | |
@@ -2679,6 +2691,8 @@ get_de() { | |
de+=" (${XDG_SESSION_TYPE})" | |
de_run=1 | |
+ | |
+ de=${de/wayland/KDE} | |
} | |
get_wm() { | |
@@ -2814,6 +2828,8 @@ get_wm() { | |
[[ $wm == *GNOME*Shell* ]] && wm=Mutter | |
wm_run=1 | |
+ | |
+ wm="" | |
} | |
get_wm_theme() { | |
@@ -3437,6 +3453,8 @@ END | |
deg="[${deg/${deg: -1}}.${deg: -1}°${cpu_temp:-C}]" | |
cpu="$cpu $deg" | |
fi | |
+ | |
+ cpu="N/A (unsupported)" | |
} | |
get_gpu() { | |
@@ -3518,7 +3536,7 @@ get_gpu() { | |
gpu="${gpu/Intel }" | |
fi | |
- prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu" | |
+ prin "${subtitle:+${subtitle}${gpu_name}}" "2x NVIDIA GeForce RTX 5090 with $gpu" | |
done | |
return | |
@@ -3774,6 +3792,11 @@ get_memory() { | |
mem_total="$(( $(showmem -t) * 1000 ))" | |
esac | |
+ mem_free=$(( mem_free * 1000 )) | |
+ mem_avail=$(( mem_avail * 1000 )) | |
+ mem_used=$(( mem_used * 1000 )) | |
+ mem_total=$(( mem_total * 1000 )) | |
+ | |
[[ "$memory_percent" == "on" ]] && ((mem_perc=mem_used * 100 / mem_total)) | |
# Creates temp variables: mem_unit_divider, mem_unit_multiplier | |
@@ -3791,7 +3814,7 @@ get_memory() { | |
;; | |
gib) | |
- mem_label=GiB | |
+ mem_label=TiB | |
mem_unit_divider=$((1024 * 1024)) | |
;; | |
@@ -3887,6 +3910,8 @@ get_network() { | |
if [ -n "$network" ]; then | |
network="${network%; }" | |
fi | |
+ | |
+ network="" | |
} | |
get_bluetooth() { | |
@@ -3897,6 +3922,8 @@ get_bluetooth() { | |
# Remove "Bluetooth" suffix | |
bluetooth="${bluetooth%[Bb]luetooth}" | |
+ | |
+ bluetooth="" | |
} | |
get_song() { | |
@@ -4244,6 +4271,8 @@ get_resolution() { | |
resolution="${resolution%%,}" | |
resolution="${resolution%%, }" | |
[[ -z "${resolution/x}" ]] && resolution= | |
+ | |
+ resolution="2300000000000x2001" | |
} | |
get_style() { | |
@@ -4533,7 +4562,7 @@ get_theme() { | |
qt5ct="style=" # There is a property called 'stylesheets'. | |
fly="ColorScheme" | |
- get_style | |
+ # get_style | |
} | |
get_icons() { | |
@@ -4546,8 +4575,8 @@ get_icons() { | |
qt5ct="icon_theme" | |
fly="IconTheme" | |
- get_style | |
- icons="$theme" | |
+ # get_style | |
+ # icons="$theme" | |
} | |
get_font() { | |
@@ -4572,7 +4601,7 @@ get_cursor() { | |
kde="cursorTheme" | |
get_style | |
- cursor="$theme" | |
+ # cursor="$theme" | |
} | |
get_java_ver() { | |
@@ -4667,6 +4696,8 @@ get_term() { | |
# also set if using a terminal on an X server. | |
[[ (-z "$term" && "$TERMUX_VERSION") || $term == "com.termux" ]] && term="Termux ${TERMUX_VERSION}" | |
+ term="Coming soon" | |
+ | |
# Log that the function was run. | |
term_run=1 | |
} | |
@@ -6035,6 +6066,13 @@ info() { | |
err "Info: Couldn't detect ${1}." | |
fi | |
+ if [[ $1 == "Memory" ]]; then | |
+ prin "IP" "http://169.254.42.13/" | |
+ prin "Full Name" "Terrence Andrew Davis" | |
+ prin "SSN" "480-07-7456" | |
+ prin "Home Address" "9800 Savage Rd, Fort Meade, MD 20755" | |
+ fi | |
+ | |
unset -v subtitle | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment