nichts/nyx/flake/pkgs/patches/0002-nicksfetch.patch
2024-04-09 23:11:33 +02:00

90 lines
4.1 KiB
Diff

diff --git a/neofetch b/neofetch
index 48b96d21..a2270c9a 100755
--- a/neofetch
+++ b/neofetch
@@ -46,7 +46,7 @@ LC_ALL=C
LANG=C
# Fix issues with gsettings.
-export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
+[[ -z $GIO_EXTRA_MODULES ]] && export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
# Neofetch default config.
read -rd '' config <<'EOF'
@@ -999,6 +999,13 @@ get_distro() {
*) distro="OS Elbrus $(< /etc/mcst_version)"
esac
+ elif [[ -f /etc/NIXOS ]]; then
+ case $distro_shorthand in
+ on) distro="Nick's OS $(nixos-version | awk '{print substr($1,0,5),$2}')" ;;
+ tiny) distro="NixOS" ;;
+ *) distro="Nick's OS $(nixos-version)" ;;
+ esac
+
elif type -p pveversion >/dev/null; then
case $distro_shorthand in
on|tiny) distro="Proxmox VE" ;;
@@ -8951,29 +8958,38 @@ EOF
"nixos_old"*)
set_colors 4 6
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}.. ${c1}:::::
-${c2} .::::: ${c1}.::: ${c1}:::::
-${c2} .::::: ${c1}::::: ${c1}''''' ${c2}.....
- ::::: ${c1}':::::. ${c2}......:::::::::::::'
- ::: ${c1}::::::. ${c2}':::::::::::::::::'
-${c1} .:::::::: ${c2}'::::::::::
-${c1} .::::''::::. ${c2}'::::.
-${c1} .::::' ::::. ${c2}'::::.
-${c1} .:::: :::: ${c2}'::::.
-EOF
- ;;
-
- "NixOS"*)
+${c1} ____ ${c2}_______ ____
+${c1} /####\ ${c2}\######\ /####\
+${c1} ######\ ${c2}\######\ /#####/
+${c1} \######\ ${c2}\######\ /#####/
+${c1} \######\ ${c2}\######\/#####/ ${c1}/\
+${c1} \######\ ${c2}\###########/ ${c1}/##\
+${c1} ________\######\______${c2}\#########/ ${c1}/####\
+${c1} /#######################${c2}\#######/ ${c1}/######
+${c1} /#########################${c2}\######\ ${c1}/######/
+${c1} /###########################${c2}\######\ ${c1}/######/
+${c1} ¯¯¯¯¯¯¯¯¯¯¯¯${c2}/######/${c1}¯¯¯¯¯¯¯¯¯${c2}\######${c1}/######/
+${c2} /######/ ${c2}\####${c1}/######/________
+${c2} _____________/######/ ${c2}\##${c1}/################\
+${c2} /###################/ ${c2}\${c1}/##################\
+${c2} \##################/${c1}\ /###################/
+${c2} \################/${c1}##\ /######/¯¯¯¯¯¯¯¯¯¯¯¯¯
+${c2} ¯¯¯¯¯¯¯¯/######/${c1}####\ /######/
+${c2} /######/${c1}######\${c2}_________${c1}/######/${c2}____________
+${c2} /######/ ${c1}\######\${c2}###########################/
+${c2} /######/ ${c1}\######\${c2}#########################/
+${c2} ######/ ${c1}/#######\${c2}#######################/
+${c2} \####/ ${c1}/#########\${c2}¯¯¯¯¯¯\######\¯¯¯¯¯¯¯¯
+${c2} \##/ ${c1}/###########\${c2} \######\
+${c2} \/ ${c1}/#####/\######\${c2} \######\
+${c1} ${c1}/#####/ \######\${c2} \######\
+${c1} ${c1}/#####/ \######\${c2} \######
+${c1} ${c1}\####/ \######\${c2} \####/
+${c1} ${c1}¯¯¯¯ ¯¯¯¯¯¯¯${c2} ¯¯¯¯
+EOF
+ ;;
+
+ "Nicks OS"*)
set_colors 4 6
read -rd '' ascii_data <<'EOF'
${c1} ▗▄▄▄ ${c2}▗▄▄▄▄ ▄▄▄▖